Clicking on multiple terms from the same vocabulary creates paths that result in same alias appear multiple times.
Example: http://example.com/books/category/history-1/category/middle-ages-34/cove...
This would happen when I would have created hierarchy category facet and clicked first on History and then Middle Ages.
I would like to be to set that each alias ("category") could show up only once per click.
I'm working on a patch and it's simple to do so in FacetapiUrlProcessorPrettyPaths->constructPath
.
The problem starts when I'm 2 levels deep and uncheck current term then it should fallback on parent category but instead it removes the alias and thus reloads without any terms from that vocabulery selected.
Comment | File | Size | Author |
---|---|---|---|
#3 | 2236705-unique-alias-per-path-3.patch | 1.84 KB | philipz |
Comments
Comment #1
dasjohi philipz,
i'm not entirely sure how your approach would work. maybe you can elaborate a little more on how the paths should be behave.
another solution could be to use the following: #1981578: Allow to remove "Taxonomy Vocabulary" from urls
greetings,
dasjo
Comment #2
philipz CreditAttribution: philipz commentedI've tried that and commented over there that I can't make it work for me :)
I'll attach a patch today so you can see what I'm trying to do. It just needs some testing.
Comment #3
philipz CreditAttribution: philipz commentedChanging title to be more specific and attaching a patch.