HotInk / hotink

Web-publishing application for Canadian University Press
http://hotink.net
MIT License
18 stars 3 forks source link

Front Page URL Generates with extra / #44

Closed willwnet closed 13 years ago

willwnet commented 13 years ago

The tag to put links to the front page is generating with an extra / at the end, for example:

<a href="{{ site.front_page_url }}">{{ "WebBanner_Nov18.png" | template_file_tag }}</a>

Generates a link to: http://thefulcrum.ca// rather than http://thefulcrum.ca/

BTW: Hot Ink is working about 20x faster for me now, thank you!!

chrisdinn commented 13 years ago

I fixed this by removing the trailing slash from your site url on the account management tab. Is it all good now?

willwnet commented 13 years ago

Perfect. Thanks.

ghost commented 13 years ago

I ran into this exact same problem yesterday making some changes to the CUP Newswire. We should really automatically strip the trailing slash from the front page URL.

chrisdinn commented 13 years ago

That's a good idea. Let's change Account#site_url to strip out any trailing slashes.