Return to page after registering

Permalink
What is the best way to have the registration page return to the page it came from, or maybe a way to specify which page it will return to? Currently, I sent a query param on the registration URL, and then set a session var in the controller which I call in the registration view to make a link back to the page of origin.

Thanks

ntisithoj
View Replies:
MrKDilkington replied on at Permalink Reply
MrKDilkington
Hi ntisithoj,

Currently the page to return to is hard coded in register.php. I believe you can override this file.
concrete\single_pages\register.php

What you are describing has been requested by other users.
1. Instead of a hard coded "Return to Home" link on the registration confirmation page, the "Return to" link destination can be selected in the dashboard.
2. Make the selectable "Return to" link an automatic redirect, so the registration confirmation page is "skipped".

I have this on my todo list.
ntisithoj replied on at Permalink Reply
ntisithoj
Great! So, is I make a register.php in application/single_page it will automatically override the default one? I was not clear about this because I was going to do that but then noticed I could not add a /register to the single page aliases because one already existed.