Skip to content
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

Add support for links with hashes #42

Closed
wardpenney opened this issue Jul 15, 2016 · 1 comment
Closed

Add support for links with hashes #42

wardpenney opened this issue Jul 15, 2016 · 1 comment

Comments

@wardpenney
Copy link

Hi!

This might be possible already, but it does not seem to be working for me.

I have the following:

active_link_to "Emissions", city_path(city, anchor: "#city-emissions") but the presence of the hash is not triggering the link activation.

I have tired active: :inclusive, active: :exclusive, and active: :exact.

Any tips?

Thanks

@GBH
Copy link
Member

GBH commented Mar 17, 2017

Just released v.1.0.4 and I added test that seems to work for your issue: https://github.com/comfy/active_link_to/blob/master/test/active_link_to_test.rb#L138
Please reopen if this is still an issue. Better yet, create a failing test.

@GBH GBH closed this as completed Mar 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants