Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
WebApplication.TerminateAndRedirect(WebApplication.ApplicationURL) changed
#7
(09-15-2020, 11:50 AM)Alexandre Machado Wrote: IntraWeb removes the host part of the URL when redirecting, in case the URL points to the same application. This is done to make it easier to work with reverse proxy servers.

Is there a way to make this functionality optional? Let's suppose that you have a webpage like this: 'https://www.myweb.com' for English speakers and 'https://www.myweb.com/spa/index.html' for Spanish speakers. Your application is hosted in a URLBase like 'https://www.myweb.com/myapp/'. If you want to use 'TerminateAndRedirect' to the main web page (English), it is ok, but if you want to redirect to the Spanish webpage, and due to the fact of IntraWeb removes the host part of the URL, the redirect will be done to 'https://spa/index.html' and it won't work, of course. Is it possible to include a parameter (true, false) to avoid the 'host part' removal?
Reply


Messages In This Thread
RE: WebApplication.TerminateAndRedirect(WebApplication.ApplicationURL) changed - by Joao Lira - 12-30-2020, 11:34 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)