I have a simple function that detects if a paramter is in the url.
If it is there, I need ALL URLS across the site to have that appened to it. Like a site wide URL rewrite (only if that paramter is already there).
For example: [login to view URL]
Then every url gets that appended to it no matter what
But if you go the url without, then nothing happens.