Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Terminate and Redirect not working properly ISAPI 15.1.20
#1
Intraweb 15.1.20

Just upgraded from 15.1.9 to 15.1.20

When calling TerminateAndRedirect('http://somesite/someWebApp.dll?params') it works when run as .exe but does not go to the destination host when run as ISAPI dll

it shows current URL with ?params on browser nav bar

'http://currentsite/currentIntrawebApp.dll?params" it should be 'http://somesite/someWebApp.dll?params"

I saw this was a reported issue with prior versions of intraweb.

I am calling using Async event.
The Params are the correct params, but the host portion is not correct.

I created a simple test app with button and edit box.  Ran on my iis server on pasted url into edit box then clicked button
WebApplication.TerminateAndRedirect(IWEdit1.Text); 
It did not go to other app on same site.
It did go to another app on different host.
I tried relative url and it also did not work

Is there something I needed to do when upgrading other than install new version and recompile TMS components.
Reply
#2
If you are redirecting to the same site, use the overloded version of TerminateAndRedirect and it should work:

-> TerminateAndRedirect('http://somesite/someWebApp.dll?params', False)

The second parameter will avoid that base URL is added to that URL
Reply
#3
(05-02-2020, 10:29 PM)Alexandre Machado Wrote: If you are redirecting to the same site, use the overloded version of TerminateAndRedirect and it should work:

-> TerminateAndRedirect('http://somesite/someWebApp.dll?params', False)

The second parameter will avoid that base URL is added to that URL

Is there some where I can set to always to use not add the base URL so I do not have to change the many places in our code that uses the TerminateAndRedirect

So far I have not had to change any code when updating from 15.1.9 to 15.1.20 which enables us to revert back to 15.1.9 if other problems occur. Are there other changes to intraweb that I need to be aware of that would require code changes? Is there a list or document that details what procedures and/or intraweb functions changed beside the release notes. I did not find anywhere that the TerminateAndRedirect had a second optional parameter. Hovering over it in code only shows a single parameter.

Thank you

Bill B
Reply
#4
We also included a fix regarding to this issue in latest version 15.1.21, in case you want to update it.

However I still think that calling the overloaded version is the "correct" way of doing it. Better to be explicit of your intentions in that case...

Cheers
Reply
#5
(05-03-2020, 12:30 PM)Alexandre Machado Wrote: We also included a fix regarding to this issue in latest version 15.1.21, in case you want to update it.

However I still think that calling the overloaded version is the "correct" way of doing it. Better to be explicit of your intentions in that case...

Cheers
Thank you, The latest version 15.1.21 has fixed the issue.
Is it my imagination or does this new version render faster than the older version I was running 15.1.9?

All in all, I have not had to change a single line of code. Great Job and amazing quick response to resolve my issue.

Bill B
Reply
#6
I think there is a significant improvement in terms of rendering performance when compared to versions to 15.1.12, IIRC, yes.

I'm glad that it is working now. I think after a long sequence of changes in that area, redirection should work nicely for all imaginable scenarios transparently, including when used with different reverse proxy servers (or URL rewrite), which can literally create hundreds of different combinations...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)