Need url's to be non secure when moving away from a secured link (without hardcoded url's in html)?
        Posted  
        
            by Tony_Henrich
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Tony_Henrich
        
        
        
        Published on 2010-04-25T17:57:18Z
        Indexed on 
            2010/04/25
            18:03 UTC
        
        
        Read the original article
        Hit count: 206
        
I have an asp.net site. It has an order form which is accessible at https://secure.example.com/order.aspx. The links on the site do not include the domain name. So for example the home page is 'default.aspx'.
The issue is that if I click on a link like the home page from the secure page, the url becomes https://secure.example.com/default.aspx instead of http://www.example.com/default.aspx.
What's a good way to handle this? The scheme should automatically work using any domain name based on where it's launched from. So if the site is launched from 'localhost', moving away from the secured page, the url's should be http://localhost/...
The navigation links are in a master page.
© Stack Overflow or respective owner