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

Not a Bug Possible Route Path Bug

Discussion in 'Resolved Bug Reports' started by tenants, Jun 20, 2013.

  1. tenants

    tenants Well-Known Member

    I think this a bug (and not user issue)

    I'm testing this locally (Windows 7) without friendly URLs

    I've set
    Board URL: http://localhost/xenforo/forum (since you ask not to use index.php or a trailing slash)
    Index Page Route: forums/

    I'm expecting that clicking the forum nav will go to

    and forms will have the url

    clicking the forum nav goes to

    (note, I have set XenForo_Link::setIndexRoute('homepage'); but without setting this, the forum nav goes to index.php and not index.php?forum/ )

    P.S. do you have in house testers, I'm just around the corner :D
  2. Mike

    Mike XenForo Developer Staff Member

    I'm confused as to why that's expected? I don't see that URL appearing anywhere else.

    The Index Page Route that you have set in the options has been completely overwritten by your setIndexRoute() call, so index.php will go to your "homepage" route. The forums now live at forums/ by default.

    It all looks expected to me?
  3. tenants

    tenants Well-Known Member

    So this is what I was expecting

    With these 2 settings

    Board URL: (The primary URL to your board) with the introduction of routes, this would now let me set the primary (actionIndex) of the forum to something else (this was my misunderstanding/ interpretation of primary URL)
    Index Page Route: This would allow me to set all other routes for the forum /forums/introductions.1/ to /community/introductions.1/ etc

    The problem is, the route changer here:

    index.php for the site homepage
    /forum for the forum homepage
    /forums/introductions.1/ for forum controllers

    so, moving over from that (without playing around with htaccess), there is no way of setting XenForo_ControllerPublic_Forum::actionIndex individually

    The site is now set up as
    index.php for the site homepage
    /forums for the forum homepage
    /forums/introductions.1/ for forum controllers

    I guess the issue is, there is no way of setting XenForo_ControllerPublic_Forum::actionIndex individually (my expectations of Board URL are irrelevant if this was possible somewhere else)
    Last edited: Jun 20, 2013
  4. Mike

    Mike XenForo Developer Staff Member

    The board URL doesn't affect any routes or anything like that. It's just telling us where the board is when we need that URL (like in emails).

    The index route simply defines what accessing <url>/index.php or <url>/ will access. Because of the setIndexRoute() call you made, this is your homepage. Since the forum list is no longer the index, it will return to its normal URL.

    You're right that there's no way to target forums/ but not forums/something with the route filters - it's not designed to do that. It expects to change a hierarchy. You could suggest this, though I'm not sure exactly how possibly it would be (may well be). I'm not sure I see the advantage though.
  5. tenants

    tenants Well-Known Member

    Advantages for a new sites, there will probably be none, although "forum" for the forum homepage and "forums" for their controllers does make grammatical sense (but you don't do that for threads or anything else, so that can be probably ruled out as an argument)

    However, for existing sites that wish to upgrade (even some of the most well known plugins designers: 8wayrun.com/forum/ 8wayrun.com/forums/new-player-arena.92/ ) may have issues upgrading, since the route controller plugin mentioned above is now broken in 1.2, and you can not set XenForo_ControllerPublic_Forum::actionIndex individually with core methods

    added suggestion: http://xenforo.com/community/thread...oro_controllerpublic_forum-actionindex.52990/
    Last edited: Jun 20, 2013
  6. Jaxel

    Jaxel Well-Known Member

    Mike can't really give support for third-party plugins, and I wouldn't expect him to do so.

    Anyone who uses XenPorta/XenUtiles should inherently know that 1.2 will change a lot of things for those mods and absolutely refrain from upgrading till they get the go ahead. This is the life of using third-party mods.

Share This Page