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.

CommentFileSizeAuthor
#3 2236705-unique-alias-per-path-3.patch1.84 KBphilipz
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dasjo’s picture

hi 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

philipz’s picture

I'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.

philipz’s picture

Title: Allow only one path alias for each facet » Allow segment aliases to be unique in path
FileSize
1.84 KB

Changing title to be more specific and attaching a patch.