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

Not a Bug Route Prefix Disappears if different from addon ID

Discussion in 'Resolved Bug Reports' started by Jaxel, Oct 6, 2010.

  1. Jaxel

    Jaxel Well-Known Member

    I have an addon with the ID "EWRporta". I named it that because its a unique ID and there is a relatively low change anyone will ever make a mod with the same ID. In the mod, I create a navigation tab that links to "/forums/portal/". As you can imagine, its a simple portal mod.

    Now in order to get that link to work, a Route Prefix must be created with "portal" so that XenForo knows to forward any links at "portal" to the correct place. When I create this Route Prefix it works fine. However, this entry will not be listed on the lists at "admin.php?route-prefixes" because the word "portal" does not match any existing addon ID.

    If I go into my database and rename "portal" to "EWRporta", then it re-appears... but as you can guess, that doesn't serve the function as intended, since that would forward "/forums/EWRporta/" instead of "/forums/portal/".
  2. Mike

    Mike XenForo Developer Staff Member

    That page doesn't touch the add-on table whatsoever. I don't see how this could be possible. Can you show the data (in the DB) when it doesn't work? Can you reproduce this with another prefix?
  3. Jaxel

    Jaxel Well-Known Member

    Attached are two images...

    Attached Files:

  4. Mike

    Mike XenForo Developer Staff Member

    You missed the scroll bar there. :)

Share This Page