We have forum installed in subfolder: https://i.materialise.com/forum/
We have problem with external links in posts. When user clicks on external link, he gets redirect to URL with our main site domain with path and query string from original URL, but not to original URL.
For example:
User gets https://i.materialise.com/watch?v=%3cvideo_id, instead of original link to Youtube: https://youtube.com/watch?v=%3cvideo_id)
And this behavior reproduces for any external links. Open in new tab via context menu and mouse middle button click works well.
I did some investigation and found that on click on link, we call, for example: https://i.materialise.com/forum/clicks/track?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dk-r-zmItM0Q and ServiceWorker redirects us to URL https://i.materialise.com/watch?v=k-r-zmItM0Q with status code 302. I spent a lot of time on this forum and didn`t find any idea what can be wrong with settings.
We have many complaints from community members and I will be very appreciate for any assistance or advice how to solve this problem.
Are you running latest? Can you link us to a particular post exhibiting the problem? @Falco are you aware of any subfolder issues with the link tracker?
That sounds a lot like this issue although I don’t think it’s exactly the same. Apparently IIS is decoding the URLencoded part first, and then replacing everything in front of the last ?
Can you post the relevant part of your IIS configuration here?
Guys, thanks a lot to everyone for help. Your posts directed me to different investigations and I found problem and fixed it.
Problem was in Application Request Routing configuration in our IIS.