• mauri01

    (@mauri01)


    Hi, I noticed that in the forum menu, the link points to “/forum” instead of “/forum/”. Can I update this? Having a redirection in place is necessary since “/forum” is not ideal for SEO.

    Thanks

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Yworld

    (@yworld)

    Привет, @mauri01 .
    There is a filter, I have nowhere to check it now, but do something with it.. This is how we remove the slash, try adding it.

    function remove_trailing_slash($slash) {
    return '';
    }
    add_filter('asgarosforum_seo_trailing_slash', 'remove_trailing_slash');

    By the way, the canonical code in your page is correct and should not affect SEO.

    • This reply was modified 5 months ago by Yworld.
    Thread Starter mauri01

    (@mauri01)

    Hi! Thank you for providing the code, but it didn’t help to add the trailing slash. I noticed that all the menu URLs have a slash at the end, and the canonical URL does too. However, the canonical URL should match the real URL, so my question is: why did you remove the trailing slash in the first place? And where can I add it back?

    Thanks!

    Yworld

    (@yworld)

    I am not the author of the plugin and I can not say the motives. Perhaps there is a solution on the official site and someone has already looked for it and received it. https://asgaros.com/support/

    Yworld

    (@yworld)

    @mauri01. You can make your own menu completely. Look at the hooks and filters, there are many of them in the plugin. https://github.com/Asgaros/asgaros-forum/blob/master/hooks.md#asgarosforum_filter_header_menu

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.