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

XF 1.5 "View This Thread" - Wrong Link, Adds "Forums"

Discussion in 'Troubleshooting and Problems' started by TheLaw, Jul 30, 2015.

  1. TheLaw

    TheLaw Well-Known Member

    I've noticed some of you had this before but no solutions and I can't find an addon that was the cause. When you see the "View This Thread" link in the user email for notifications, it contains the wrong link to the f

    mysite.com/forums/threads/blah-blah-blah.61863/#post-223694

    Remove the "forums" and then it works just fine. I remember seeing this happen on my test site too (and I could also have some help finding the email templates like the button that says "view this thread" which doesn't seem to be coming up using the phrase.)
     
  2. Liam W

    Liam W Well-Known Member

    Is your board URL setting correct?

    Liam
     
  3. TheLaw

    TheLaw Well-Known Member

    Thanks Liam - yes, the board URL is correct or the board wouldn't work. :) Just removed the index page route, put in a home page URL, removed it, all of them still add this mysterious "forums/" to the URL generated in the email notification.
     
  4. Liam W

    Liam W Well-Known Member

    That's not actually true :)

    I am almost semi-certain that you have mysite.com/forums in your board URL option, if you check it and it isn't then I look stupid. Is there any harm?

    Liam
     
  5. TheLaw

    TheLaw Well-Known Member

    I'm not sure what that URL is supposed to be now - it's supposed to be the URL to the forum not the installation. if I don't set that as the proper board installation, how will XF know that my forums are supposed to be at /forums/ for the forumhome?
     
  6. TheLaw

    TheLaw Well-Known Member

    OK... now I think I see the problem. The "index page route" is what you want to change the forum index page to - I think that if you use Brogan's CTA you need to change the Route to the CTA so that this is used for the home page for the forum no?
     
  7. BobbyWibowo

    BobbyWibowo Well-Known Member

    Yeah, having incorrect Board URL won't necessarily break the forums. Either way though, I've never gotten something like that from my site's mailings.
     
  8. Liam W

    Liam W Well-Known Member

    It's the root URL XenForo is installed at (IE where the index.php file is).

    The index page route option configures what appears on that URL.

    If you set the index page route to forums, then the forums will be the homepage.

    For example, on XF Liam:

    Screen Shot 2015-07-30 at 03.58.29.png
    Which makes the featured threads portal the home page :)

    Liam
     
  9. TheLaw

    TheLaw Well-Known Member

    OK... but where is setting that sets the forum home URL as /forums/ on your site if XF is installed in the root? In other words, if XF is in the root, how does it "know" to put your forum_list at /forums/ and not somewhere else?
     
  10. Liam W

    Liam W Well-Known Member

    What do you mean?

    I think I need some sleep...

    Liam
     
  11. TheLaw

    TheLaw Well-Known Member

    Yeah man, it is late by you! LOL!! :)

    Meaning you install XF in /public_html/ but you want the forum home to appear at /forums/ and not anywhere else like yoursite.com or yoursite.com/blahblah/ . That Board URL is where you want the forum home to appear, at least that's what I thought. So if you set it to mysite.com/forums then you'll have the forum appear at mysite.com/forums/ . If I set up the index page route, which is the index page for the install directory, I can use CTA for that so that mysite.com/ uses the CTA to render that page. If I change the "Board URL" to the same as "mysite.com" then the board URL and the CTA would be one and the same. The Home Page URL is what you'd enter if you wanted a URL to appear in your nav that is different and external to the XF system.
     
  12. Liam W

    Liam W Well-Known Member

    That's what will happen :)

    The forums route is special - it's set to the home route by default, but if that is changed then the forums route starts working.

    So, set board url to mysite.com

    Set index page route to threads/featured

    mysite.com/forums now points to forums
    mysite.com points to CTA

    This is exactly how I have it setup on XF Liam :)

    Liam
     
    TheLaw likes this.
  13. TheLaw

    TheLaw Well-Known Member

    OK... I'm a bit confused. So I'm assuming there is a route that /forums/ will automatically generate the list_forums / forum home page is what you're telling me. I am assuming this is correct as I've just tested it and explains the extra "forums" link in the emails.
     
  14. Liam W

    Liam W Well-Known Member

    Yes. Technically that exists now (http://xenforo.com/community/forums).

    Liam
     
  15. TheLaw

    TheLaw Well-Known Member

Share This Page