I have a header/footer that appears on all pages, and of course it has links to other pages on the site. This header/footer is on pages at various url “depths”-- e.g., it’s used in /
, /docs/
, and /docs/foo/
.
If I wasn’t using http_prefix
, then I could just use an absolute path for header/footer links and it would be good on all pages.
But… I need to use http_prefix
. As far as I can tell, there’s no helper that will get me the root_url + http_prefix
that I can use in my link_to()
calls.
Is there a way I can get a result kind of like
link_to('linktext', root_url + http_prefix + rest_of_url)
?