Routing comments.php to a custom url after the submit button is pressed
-
I have tried searching, but I don’t really know what to search for in this case.
I have a custom url setup, which is as follows:
parent category -> custom taxonomy term -> post
This makes the path look like this:
https://www.ecodelphinus.com/chronisch-zieken-gehandicapten/wwb/indien-iemand-chronisch-ziek-of-gehandicapt-is-in-de-wwb-is-het-verstandiger-als-die-persoon-gebruik-kan-maken-van-de-ziektewet.html
Now this works fine, but I noticed that when a comment is submitted the webpage is rerouted to a different path after submission.
Which is as follows:
parent category -> child category -> post
This makes the path look like this:
https://www.ecodelphinus.com/chronisch-zieken-gehandicapten/beleid/indien-iemand-chronisch-ziek-of-gehandicapt-is-in-de-wwb-is-het-verstandiger-als-die-persoon-gebruik-kan-maken-van-de-ziektewet.html/comment-page-1#comment-31
Besides being a different path, this also breaks my breadcrumbs and the comment under review is not shown to the visitor.
How do I reroute the submit function to a custom url?
Is there any documentation on this?Edit:
I should note that by design a single post can have different paths:
parent category A -> taxonomy term 1 -> post A
parent category A -> taxonomy term 2 -> post ASo any solution should be able to distinguish from that.
- The topic ‘Routing comments.php to a custom url after the submit button is pressed’ is closed to new replies.