Hi all,
I’m trying to migrate a site to v4, but seem to have hit a dealbreaker with relative links when the target is called index.html
, since it that case the links become absolute. For example, in code/index.html.erb
I have
<%= link_to 'text', '/index.html', :relative => true %>
In the rendered code I would expect
<a href="../index.html">text</a>
or
<a href="../">text</a>
but I actually get
<a href="/index.html">text</a>
I get the expected behaviour if the target of the link is called anything but index.html
, bizarre!
Am I missing something here?
Thanks in advance!
Jim