Skip to content

Use root-relative URL for favicon #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 24, 2017
Merged

Conversation

smaximov
Copy link
Contributor

Relative URLs are resolved to full URLs using the base path of the current page, which means that the browser tries to request /guides/getting_started/images/favicon.png on /guides/getting_started/hanami.html. As the result, the favicon is currently displayed on the index and the "Contributors" pages only. The solution is to switch to root-relative URLs.

Another option is to use Padrino's favicon_tag (<%= favicon_tag 'favicon.png' %>) which generates the same markup.

@beauby
Copy link
Member

beauby commented May 24, 2017

Thanks for fixing this! Merging.

@beauby beauby merged commit 5acc1ae into jsonapi-rb:source May 24, 2017
@smaximov smaximov deleted the fix/favicon branch May 24, 2017 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants