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

What's the purpose of the goto route?

Discussion in 'XenForo Development Discussions' started by Marcus, Mar 17, 2015.

  1. Marcus

    Marcus Well-Known Member

    XenForo_ControllerPublic_Goto has a function actionPost which redirects like posts/ and actionConvMessage redirects conversation messages, which both then redirect back to the end page. There are two redirections in a row.

    From what I understand this route is only used within the quote template. Wouldn't it be easier to directly route within that quote template to either posts or conversation messages? Then you would only have one redirect.
  2. Arty

    Arty Well-Known Member

    Its internal re-routing, not redirection. So it doesn't really affect anything.

    Removing one layer of redirection would require duplicating code, which is not a good idea.
    Marcus and Daniel Hood like this.
  3. Marcus

    Marcus Well-Known Member

    Thanks Arty!

Share This Page