Open darthnorman opened 1 year ago
Oh. Sorry to hear. The reason why this line has been removed, is that this method has been dropped in UriBuilder.
What TYPO3 version are you using?
Hi, thanks for reaching out, I am using T3 v10.4.32 and tx_news v8.6.0
Can confirm. When using pw_comments 5.2.0 with news 10.0.3 in TYPO3 10.4.37, after submitting a comment, users are redirected to the detail page without the single news parameters, i.e. /news/detail#comment1234 instead of /news/detail/news-item#comment1234
When adding ->setAddQueryStringMethod('GET') in the CommentController as @darthnorman mentioned it does seem to work correctly.
There seems to be a line missing in the CommentController that was added here: https://github.com/a-r-m-i-n/pw_comments/commit/0bd2724c48d350b650d0842e103ecbd09a310681#diff-9f86396b2474664816ef991557f3a2a4ea7846ea4f5ed57eaf0a115fb8d88741R519
This line is no longer present and seems to be responsible for comments not working on news detail pages. Whenever I submit a comment I am landing on the correct page but the news is missing.