Issue with double redirect

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
 
S

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.
 
B

bruce barker

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)
 
S

Seb

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,070
Latest member
BiogenixGummies

Latest Threads

Top