Skip to:

Wrong redirect when URL contains ID in string

  • royurbanmedia


    Currently I have a problem with profile URLs in bbPress redirecting to the wrong page if a user has a number in their name that happens to match a page ID.

    What I mean is currently if I click a URL like this:

    It will direct me to the forum profile of someone with the username ‘myusername’ as expected.

    However, if I click on a URL like this:

    Instead of directing me to the profile of myusername94 as expected, it actually redirects me to a completely different page which ends up being the page with ID 94, i.e

    I am guessing this may have something to do with permalink settings, which are currently set to Post Name. Is there a way to resolve this issue while still being able to use the same permalink structure?

  • You must be logged in to reply to this topic.
Skip to toolbar