Preface
This question is design centered and is going to be somewhat opinionated I suppose, so if you want to vote to close it that's cool - I understand - but I trust my peers up here.
Goal
Have the user click on a link, that requires them to be logged in, so redirect them to the login/registration page first. In my case it's all one page. And then after successful login - and I say that because registration performs an immediate login - direct the user to that page they originally requested.
Question
My gut tells me that I could simply pass the relative URL in the query string. However, there are two issues I see with that:
- Joomla, for some reason, BASE64 encodes that address.
- I really don't want to have to find a way to carry that around when rendering the pages (i.e. if there is a query string I have to make sure all the
hrefattributes have it appended so when they post back it's persisted. I just don't like that.
So, to the question directly. If using the query string is the right way, then why does Joomla BASE64 encode it? And if it's not, what is the right way?