What's the purpose of the goto route?

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.
 
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.
 
Top Bottom