sal Wrote:I hadn't come across this being noted anywhere so thought it would be worth mention, if you have canonical redirects enabled in gsconfig.php this will break News Manager. Is there a patch for this or is it even possible to patch?
Enabling GS built-in canonical redirection will break any plugin that uses URL parameters (like NM). Nothing wrong about GetSimple, it's difficult (impossible?) to do for all cases. That's why GSCANONICAL is not enabled by default.
sal Wrote:Is there a patch for this or is it even possible to patch?
It'd be nice to have a canonical redirection plugin that allows excluding specified slugs.
For now, here's a quick solution. Insert this in your theme's functions.php file (create it if you don't have one):
Code:
<?php
if ($url != 'news') {
if ($_SERVER['REQUEST_URI'] != find_url($url, $parent, 'relative')) {
redirect(find_url($url, $parent));
}
}
(Change 'news' to your NM slug name)
Edit: I forgot... you have to disable canonical redirects in gsconfig for this to work.