Closed (outdated)
Project:
Link Trail By Path
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Oct 2017 at 17:22 UTC
Updated:
8 Aug 2026 at 04:48 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
caldenjacobs commentedHi firfin,
Could you post an export of your View here?
It should be functional.
Thanks
Comment #3
firfin commentedMaybe I am missing something then ( if it should be functional.) There are no further settings required other than enabling the module right?
Attached is an export of my view of basic pages, just titles in a block. The block just list all titles and I need the one which is being viewed to be active. My original block grouped the titles by first letters (it is a glossary basically.)
I added a simpler block for testing purposes ( jus titles, no grouping, minimal test case.) Neither seems to work.
Thanks you for looking into this. If you need any other info I can post it.
Comment #4
firfin commentedForgot to attach the file. replace 'view_' with 'view'.
Comment #5
markdcThis isn't functional for me either.
I have a view of shop categories based on taxonomy terms with the following URL pattern:
example.com/en/shop/category-1
example.com/en/shop/category-2
example.com/en/shop/category-3
No matter what page I am on in the shop, only category-1 gets the active link. It's as if it is only looking at /shop and not the following parts of the URL. Even if I am at example.com/en/shop/category-3/product-123, category-1 keeps the active-trail.
I'm using the latest Pathauto and D8.6.
Thanks if you can look at this.
Comment #6
markdcUpdate: Setting the view's caching to none fixed it.
Comment #7
polI wonder if there is a way to fix this without changing the Views settings...
Comment #8
markdcMy log is full of PHP notices (issue here) in D8.6.7. Otherwise module is still working fine.
Comment #9
polHi,
Is this issue still valid ?
(reopen if needed)
Thanks.
Comment #10
sirclickalotHi,
All working for me on anchors - i.e. it is adding the class correctly.
Great little module, thanks.
I agree with markdc though, I am seeing errors in the Watchdog like this...
Comment #11
caldenjacobs commentedSince it looks like this issue (#2918474) is primarily related to Link Trail by Path not working with Views unless caching is disabled, I'm going to update the title & description to reflect that.
Regarding the log errors (in #8 and #10), I've created a separate issue for the PHP user error: InvalidArgumentException: Route required message we're seeing in site logs using Link Trail by Path. Please see #3186839.
I unfortunately don't have bandwidth to work on these issues, and it looks like the maintainer, Pol, is no longer using Drupal, so this module may need a new maintainer. Pol did mention in the linked issue that he would be willing to help commit patches if the community is able to help out, here.
Comment #12
markwittens commentedThe problem here is that the view doesn't know it should vary its cache per page. For now I've added a custom hook in a separate module that solves this problem in my project by invalidating the render cache only right after the view with the cache problem has rendered. Completely disabling the views cache will result in a major performance penalty, this will disable only the render cache and only for the view.
Comment #13
polHello,
I'm indeed no more using Drupal but I'm still here to submit things if it's needed.
Please do not submit patches, but create a merge request so I can review it quickly and merge it if necessary.
Thanks!
Comment #14
sirclickalot