Nicer permalinks plugin messes up the forum sitemap
-
Hi everyone!
I´ve just installed bbpress and the nicer permalink pluggin (http://bbpress.org/plugins/topic/nicer-permalinks/), it works but it kind of messes up the sitemap, ive tried 2 sitemap pluggins and same result
for example the topic url is:
mydomain/forum/mytopic.html
but the sitemap url is:
mydomain/forum//mytopic.html (double // before the individual topic permalink)
Can anyone tell me if im doing something wrong or check if its the pluggin fault?
i deactivated the nicer permalink plugin, added a dummy post to refresh the sitemap and voilá the url is correct without “//”, i guess its the pluggin fault here.
think i might have found something in the nice-filters.php file, altough im no expert it seems the error comes from here, but i think its a fix from someone, so removing the “/” will break something..
function get_forum_nicer_link( $link ) {
global $bb;
// Remove redundant "forum" word from forum link and append '/'. Mandatory! Props: Mohta
return str_replace( $bb->uri . 'forum/', $bb->uri, $link ) . '/';
heres my forum (test) url: http://www.ricardouk.com/forums/
and my sitemap url: http://www.ricardouk.com/forums/sitemap.xml
Thank you
Original post started here: (someone should take a look at the registrations here as i’ve been unable to register, so far i tried 3 times until CK told me i could use the wordpress.org forums account over here)
http://bbshowcase.org/forums/topic/nicer-permalinks-plugins-messes-up-the-forum-sitemap
- You must be logged in to reply to this topic.