I have some code in one project that I've used to place a URL in a query
string, e.g., the content of "from" as shown below
http://www.example.com/appname/auth/login.a4d?from=%2Fappname%2Fproposal.a4d?id=123456
The "from" parameter is used to redirect the user to a specific page
after login.
We recently tried to use the same code in another project and are having
some difficulties. In the orignal project the the query string's
parameter only has one value. In the new project it may have 3 or more
parameter values and I'm finding that the from value isn't correctly
interpreted before the redirect. As a result the user may login, but
they aren't directed to the correct page (they end up on the home page).
In reviewing our code I can see why the current solution breaks, but
can't clearly see a good way to solve this problem.
I expect others here have solved this problem. How have others dealt
with this problem, i.e., how would you encode the "from" parameter. I
tried base64 but had some problems (I think caused by trailing = in the
result).
Also, we are still using 3.01b7. In my debugging I'm seeing some
unexpected behavior with "get query params". Mantis doesn't indicate
that there was ever a bug with this command. For example if I encode a ?
(%3f) in my "from" value, Active 4D would return a result that stopped
at the character before that encoded character.
Thanks,
Brad Perkins
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/