1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Design Issue Redirect error with page

Discussion in 'Resolved Bug Reports' started by caoanh204, Feb 11, 2014.

  1. caoanh204

    caoanh204 Active Member

  2. Amaury

    Amaury Well-Known Member

  3. Brogan

    Brogan XenForo Moderator Staff Member

    I believe the OP is manually adding ?page=2 to the URL.
    caoanh204 and Amaury like this.
  4. Mike

    Mike XenForo Developer Staff Member

    This is more or less a design issue with the redirects. We can't remove query string params when redirecting as they generally won't be handled by the route itself. Here's a situation where the param can theoretically be seen both as part of the route itself and the query string.

    In general, this URL should never be generated. If it is, that would be a bug, but I don't think it's possible with our URL generation options.
    caoanh204 likes this.
  5. caoanh204

    caoanh204 Active Member

    Yes, I got it when redirect old url when convert from vBulletin.
    I must to add this code to index.php to fix it.

    header("Location: /threads/{$arr['slug']}.{$arr['id']}/page-{$arr['page']}",1,301);

Share This Page