-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
Matching to path issue #15
Comments
Can you share the source for the links you’re generating? I’m curious why it seems to match fine in our tests, but you have a case where it is not matching. |
Sure, I don't think I'm doing anything too unusual but am new to middleman. I've created a template in my source directory called <%= current_link_to 'Writing', 'writing' %> |
I had the same issue – thanks for the fix @chrism! |
Referencing issue thoughtbot#15 on line 19: `if current_path.include? path` Works in my tests, and the explicit match before did not work.
Using the gem I've found that the current_path includes forward slashes like this
/link/
so that it fails to match the path using==
.I've managed to fix this by changing it to
But wondered if this is a good approach?
The text was updated successfully, but these errors were encountered: