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

After marking forums read

Discussion in 'XenForo Suggestions' started by Stuart Wright, Dec 14, 2013.

  1. Stuart Wright

    Stuart Wright Well-Known Member

    Whenever you mark the forums read (not a single forum, the whole forum) via the nav bar at the top it takes you away from the page you were on and takes you to the forums page. Why does it change the location? Wouldn't it be better to return the user to the page they were on?
  2. Amaury

    Amaury Well-Known Member

    Personally, no.
    Wuebit likes this.
  3. King Arceus

    King Arceus New Member

    I feel it would make more sense to return the person to the page they were on. They were on a particular page for a purpose.
  4. Stuart Wright

    Stuart Wright Well-Known Member

    Almost a year later, I'm returning to this question. Is it possible to make a quick hack to reload the current page?
  5. Daniel Hood

    Daniel Hood Well-Known Member


    You can edit /library/XenForo/ControllerPublic/Forum.php line 901

    change from
    return $this->responseRedirect(

    return $this->responseMessage(
    Note that it is not recommended to change core files but you requested it...

    [Edit] I guess this doesn't actually refresh the page, just lowers the success message saying the board has been read. Refreshing the page would take a little bit more work.
  6. Jeremy

    Jeremy XenForo Moderator Staff Member

    Change the lines Daniel mentions above to this:
            $link $this->_request->getHeader('Referer');
            if (!
    $link) {
    $link XenForo_Link::buildPublicLink('forums');
    Shouldn't be too hard to build into an add-on so it survives upgrades.
    semprot and Daniel Hood like this.
  7. Stuart Wright

    Stuart Wright Well-Known Member

    Go on then, Jeremy. The whole world needs a hero.
    NixFifty, Lisa and Russ like this.
  8. Jeremy

    Jeremy XenForo Moderator Staff Member

    Screen Shot 2014-12-01 at 5.44.35 PM.png

    :whistle: Working and in action on my site.
    Last edited: Dec 1, 2014
    Stuart Wright and Lisa like this.
  9. Lisa

    Lisa Well-Known Member

    Jeremy likes this.
  10. Stuart Wright

    Stuart Wright Well-Known Member

    Heroic :) Thanks :)

Share This Page