Hi @mirallesdesign,
Could you try to change “Redirect mode” to “Disable” in Permalink Manager settings? This should stop the redirect.
I will try to provide you with a solution in next 24 hours.
Best regards,
Maciej
Hi @mirallesdesign,
I checked the problem and there is a better solution. Could you try to add the below snippet to functions.php file in (child) theme directory?
function pm_bbpress_endpoints($endpoints) {
return "{$endpoints}|edit";
}
add_filter('permalink_manager_endpoints', 'pm_bbpress_endpoints');
Best regards,
Maciej
Thanks for the response, disabling the redirect mode works fine, but the snippet with the redirect enabled doesn’t.
Hi @mirallesdesign,
Could you provide me a sample edit URL? If you do not want to show it publicly, please send it to my email contact /at/ maciejbis.net.
To whom it may concern 🙂
The problem will be fixed in the next release. If you would like to fix before the new version of plugin is published, please use the below snippet:
function pm_stop_bbpress_redirect() {
global $wp_query;
if(!empty($wp_query->query_vars['edit'])) {
$wp_query->query_vars['do_not_redirect'] = 1;
}
}
add_action('wp', 'pm_stop_bbpress_redirect');
The code should be added to functions.php file in (child) theme directory.
Best regards,
Maciej