Ultimately here is what I'm trying to accomplish.
I have an event management system I'm building.
I've created a dashboard where the user builds out a schedule of sessions for a day of the event.
Basically They are on screen A and I send them to screen B which has a dynamic form on it. I pass some values there are working with over to form B in the Query string. Form B has a Dynamic form on it. After form B inserts a new record I want to send them back to Form A and preserve the querystring values.
$(URLReferrer) would work perfect for this except 'http://' keeps getting forced in from of the output of $(URLReferrer).
For the record the site I'm working with has a sub-domain on it as it is the dev environment. Once we go live we will deploy to a different domain so I don't want to hardcode the URL. Example is today I am on test.mycompany.com and when we go live it will be www.myclient.com
So end result is that when I post the page it tries to redirect to:
http://http://test.mycompany.com?eventID=2I've even gone in to the DB and removed the forced http:// but then the form will not redirect at all (I'm guessing there is code in place to check for the presence of http://)