XF 2.0 Event listener to replace default route

GPA-R

Active member
Hi,

I want to setup an event listener on my addon to change the registration URL to something else (external). When user clicks on Register it should take them to the link I specify.

I thought I should listen to router_public_setup but it doesn't seem to be the case?
 
why don't you make a class extension and override XF\Pub\Controller\Register->actionIndex()? You could place a redirect there.
 
Back
Top Bottom