Bug report - wrong forum URL routing in latest discussion module

Discussion in 'Site Discussions & Suggestions' started by Gintoki Sakata, Jan 6, 2012.

  1. Gintoki Sakata
    OP

    Gintoki Sakata Advanced Member

    Newcomer
    74
    21
    Dec 27, 2011
    Edo
    I figured it cannot hurt to report this small bug. When you are on the portal page you can go directly to a forum if you click an icon in the latest discussion module.

    [​IMG]

    However the URLs are not routed correctly, resulting in URLs that lead to the portal page. For instance if you click at the 3DS icon,it should lead you to the 3DS hacking and homebrew section, but the URL is this:

    Code:
    http://gbatemp.net/f/201-3ds-hacking-homebrew/f/156-user-submitted-news/f/201-3ds-hacking-homebrew/
    Obviously this URL doesn't make sense. The correct URL should be this:

    Code:
    http://gbatemp.net/forum/201-3ds-hacking-homebrew/
    That's all :)

    Edit: I have investigated this a bit further. When you are on the portal page with this URL:

    Code:
    http://gbatemp.net
    and click the 3DS icon, the URL becomes this:

    Code:
    http://gbatemp.net/f/201-3ds-hacking-homebrew/
    The "f" should the "forum".

    However if you click at the wrong URL and then for instance at the user submitted news icon, the URL becomes this:

    Code:
    http://gbatemp.net/f/201-3ds-hacking-homebrew/f/156-user-submitted-news/
    Which means the part "f/156-user-submitted-news/" is added to the wrong URL resulting in a URL that doesn't make sense.
     
  2. tj_cool

    tj_cool Site dev

    Supervisor
    9,993
    -1
    Jan 7, 2009
    Belgium
    This planet
    Fixed
     
  3. Costello

    Costello Headmaster

    Administrator
    12,487
    5,951
    Oct 24, 2002
    @[member='tj_cool']: I think your fix had a bad consequence, all the links for the blog articles (in the Blog tab) are broken, they take back to the portal :P
     
  4. tj_cool

    tj_cool Site dev

    Supervisor
    9,993
    -1
    Jan 7, 2009
    Belgium
    This planet
    Should be OK now @[member='Costello']
     
  5. Costello

    Costello Headmaster

    Administrator
    12,487
    5,951
    Oct 24, 2002
    thanks a lot @[member='tj_cool'] :P (mention battle fight war) :creep:
    good job as always