Issue with double redirect

  • Thread starter Thread starter Seb
  • Start date Start date
S

Seb

Hi,

We have a page in VB.NET redirecting to an external site.

Example: http://mysite.com/redirect.aspx?url=http//externalsite.com/their-page.asp

The target page on the external site (http//externalsite.com/their-
page.asp in this example) also redirects to another page (let's say
"their-page2.asp") on their website).

When people click on my original link, Internet Explorer exhibits some
strange behaviour.

The first time, the IE address bar will show: http://mysite.com/their-page2.asp
(basically, staying on the original domain but trying to get the page
from the external site), resulting in a "page not found".

However, during subsequent attempts, IE sometimes gets it right, and
does redirect to "http//externalsite.com/their-page2.asp".

Can something be done on our aspx page to ensure that the redirect
works properly? Is this a defect with IE?

Thanks,
Seb
 
Thanks,

the example was poorly constructed, but our pages have the proper
encoding and URLs as parameters, so it appears to be an issue with the
redirect itself. The same happens when the URL is actually hard-coded
within our redirect page.
 
without a sample of your redirect code, there is no way to figure out
what your code is doing wrong.

if the url will work in the browser (paste it in the address bar, then
it should work as a redirect.


-- bruce (sqlwork.com)
 
I have found some info more regarding this issue.

The external page the asp code is redirecting to is protected by NTLM,
so the first time, the user gets prompted his login/password, and the
redirect fails (the URL is appended to the current site).

The second time, the redirect works (as the user is already
authenticated).

Is there a solution to have a proper redirect to an external site/page
protected by NTLM works?

Thanks,
Seb
 
Back
Top