HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Plugin doesn't work in vanilla 2.3
This discussion is related to the Bump addon.
When I try to bump discussion I've got 404 error. I've noticed the url of bump action isn't correct. It should be http://mydomen.com/forum/discussion/bump?discussionid=1, but it is http://mydomen.com/discussion/bump?discussionid=1. Part of path /forum/ doesn't exist.
Can you fix it?
0
Comments
You need to make sure you have pretty urls enabled.
https://open.vanillaforums.com/discussion/25111/about-error-404-not-found
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
I have pretty urls enabled. As I wrote above formed url to action bump is wrong. If it would has part /forum/ it will be working.
Ok try changing
to this
$Url = Url('discussion/bump?discussionid={$Discussion->DiscussionID}');
or to this
$Url = "discussion/bump?discussionid={$Discussion->DiscussionID}";
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
None of those works.
First expression form link as
/forum/discussion/bump?discussionid={$Discussion->DiscussionID}
Second expression form link as
/forum/categories/discussion/bump?discussionid=765
I've corrected first expression
$Url = Url('discussion/bump?discussionid={$Discussion->DiscussionID}');
to
$Url = Url('discussion/bump?discussionid' . $Discussion->DiscussionID);
and 404 error doesn't appear.
@linc please update the plugin with the solution from this solutionsayer badge winner !!!
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
I've made a pull request