Visual Basic Code , VB.NET Code, VB Code
  Home   :  Code   :  Forums   :  Submit   :  Mailing List   :  About   :  Contact


Request.UrlReferrer.AbsoluteUri losing HTTPS navigation


Request.UrlReferrer.AbsoluteUri losing HTTPS navigation

Author
Message
TheMatrix
TheMatrix
Forum God
Forum God (2.2K reputation)Forum God (2.2K reputation)Forum God (2.2K reputation)Forum God (2.2K reputation)Forum God (2.2K reputation)Forum God (2.2K reputation)Forum God (2.2K reputation)Forum God (2.2K reputation)Forum God (2.2K reputation)

Group: Forum Members
Posts: 7, Visits: 72

Hi All,

 

I am facing a weird problem with HTTPS and Request.Url.AbsoluteUri in my

ASP.NET application. Here is the scenario -

1. I have a page call Authentication.aspx using this URL https://NHWB032/ClientAccount/EN/Authentication.aspx

On the page i have a menu that enables you to navigate to the same page but in a different language (French).

 

When clicking the language link i navigate to http://NHWB032/ClientAccount/FR/Authentication.aspx

 

and i am using Request.Url.AbsoluteUri to know on which page i am since i have more than 1 page containing the language menu.

 

If you notice between the 2 links Request.Url.AbsoluteUri got change from HTTPS to HTTP

 

PROBLEM - the result has HTTP instead of HTTPS!!!!!

 

Has anybody faced a similar problem or has some insight into what could be

going wrong and could anybody give me the best resolution to this problem i.e.:Change the code, Change settings on the server and IIS.etc.?

 

Thanks for your help!

The Matrix
TheMatrix
TheMatrix
Forum God
Forum God (2.2K reputation)Forum God (2.2K reputation)Forum God (2.2K reputation)Forum God (2.2K reputation)Forum God (2.2K reputation)Forum God (2.2K reputation)Forum God (2.2K reputation)Forum God (2.2K reputation)Forum God (2.2K reputation)

Group: Forum Members
Posts: 7, Visits: 72
When i run this on my localhost no problem my url stays the same but on the 2003 server, it changes from HTTPS to HTTP and i use the same code.

The Matrix
TheMatrix
TheMatrix
Forum God
Forum God (2.2K reputation)Forum God (2.2K reputation)Forum God (2.2K reputation)Forum God (2.2K reputation)Forum God (2.2K reputation)Forum God (2.2K reputation)Forum God (2.2K reputation)Forum God (2.2K reputation)Forum God (2.2K reputation)

Group: Forum Members
Posts: 7, Visits: 72
Does anybody know another way we can get the previous URL dynamically without using the Request.Url.AbsoluteUri? I tried to google this but couldn't find strong issues.

Thanks

The Matrix
TheMatrix
TheMatrix
Forum God
Forum God (2.2K reputation)Forum God (2.2K reputation)Forum God (2.2K reputation)Forum God (2.2K reputation)Forum God (2.2K reputation)Forum God (2.2K reputation)Forum God (2.2K reputation)Forum God (2.2K reputation)Forum God (2.2K reputation)

Group: Forum Members
Posts: 7, Visits: 72
Please ignore my last thread and let me re-phrase

Does anybody know another way we can get the CURRENT URL dynamically without using the Request.Url.AbsoluteUri? I tried to google this but couldn't find strong issues.

My title should be Request.Url.AbsoluteUri and NOT Request.UrlReferrer.AbsoluteUri

Sorry

Thanks

The Matrix

The Matrix

TheMatrix
TheMatrix
Forum God
Forum God (2.2K reputation)Forum God (2.2K reputation)Forum God (2.2K reputation)Forum God (2.2K reputation)Forum God (2.2K reputation)Forum God (2.2K reputation)Forum God (2.2K reputation)Forum God (2.2K reputation)Forum God (2.2K reputation)

Group: Forum Members
Posts: 7, Visits: 72
The fix we came up with is to put this line of code:
 
redirPath.Replace("http://", "https://")


The Matrix
GO


Similar Topics


Reading This Topic


Login
Existing Account
Email Address:


Password:


Social Logins

Select a Forum....

















A1VBCode Forums


Search