It would be great to use the URL pattern when viewing/adding reviews to the node. For example, if I am on www.example.com/product/taxonomy/title, when you click on the review tabs it will use the node ID, such as www.example.com/node/52/reviews instead of www.example.com/product/taxonomy/title/reviews.

I am using contextual filters based upon the URL structure as well as breadcrumbs which would be nice to maintain these features when looking at reviews. It is also better display for the end-user.

Comments

scot.hubbard’s picture

Status: Active » Closed (fixed)

Version 7.x-1.7 has now been released and includes PathAuto integration to address this issue.

BD3’s picture

Thank you for adding this! However, I cannot seem to get this to work properly. I am using 7.x-1.8 and have adjusted the URL Pattern "Reviews Paths" at admin/config/search/path/patterns. I then Bulk Generated the Aliases to which nothing happened. Still when adding a review, I receive www.example.com/node/52/reviews as the URL structure. Perhaps I am doing something wrong. Any thoughts?

scot.hubbard’s picture

@BD3 - have you set the pattern for the content type that the reviews are enabled for? You must do that first.

BD3’s picture

I have, my Content Type Pattern is
products/[node:field-product-category:0]/[node:field-product-category:1]/[node:title]
and my Reviews Path is
products/[node:field-product-category:0]/[node:field-product-category:1]/[node:title]/reviews

I tried using other example content for the Reviews Path such as "test/[node:title]" but that didn't seem to work either.

scot.hubbard’s picture

I found a debug function that I though I had removed in the module. If you don't have the DEVEL module installed and enabled it could have caused an error. Can you try the 7.x-1.9 version please. I have tested it with complex URL patterns and it works OK for me.