Print Page | Close Window

returnUrl - Isn't working for me in v9

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=23989
Printed Date: 07 April 2026 at 2:29am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: returnUrl - Isn't working for me in v9
Posted By: ohiopbx
Subject: returnUrl - Isn't working for me in v9
Date Posted: 29 July 2007 at 1:41am
Borg, the return url does not work for me.
Line 108'ish of "login_user_test.asp"

If strReturnURL = "" OR Instr(strReturnURL, "?") = 0 Then strReturnURL = "default.asp" & strQsSID1


prevents me from being able to use:

http://localhost/ohiopbx9/login_user.asp?returnURL=_mod_approve_field_reviews.asp


i put some code in the usertest to see what it is trying to do and this is what it looks like:
response.write(strReturnURL & "  " & Instr(strReturnURL, "?"))
'This is the normal code
If strReturnURL = "" OR Instr(strReturnURL, "?") = 0 Then strReturnURL = "default.asp" & strQsSID1


and this is what is printed out:
_mod_approve_field_reviews.asp 0


and the url resolves to:

http://localhost/ohiopbx9/login_user_test.asp?_mod_approve_field_reviews.asp


I have no idea why you are looking for ? but if i comment that line out it works perfectly, redirects me right to the page i need. Any insight?



Replies:
Posted By: WebWiz-Bruce
Date Posted: 29 July 2007 at 9:46am
There where a few issues with getting the correct return pages, so the system has been redone for the next release.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: ohiopbx
Date Posted: 29 July 2007 at 3:55pm
Ok, well i went ahead and removed
OR Instr(strReturnURL, "?")


and it works perfectly, what does that question mark do?


Posted By: stained
Date Posted: 29 July 2007 at 4:09pm
Quote
OR Instr(strReturnURL, "?")
and it works perfectly, what does that question mark do?


question mark isn't doing anything as such.

the code line above is is looking for a ? in the return url.
with asp to add variables to the end of a url you need a question mark after the url i.e www.webwiz.com/index.asp?variable=cheese


Posted By: ohiopbx
Date Posted: 29 July 2007 at 5:17pm
then i would say it should be an AND statement and maybe not an OR



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net