My custom login for DNN is setting a value for RedirectURL
this.RedirectURL = retURL.Value.ToString(); This works fine for any site based url or path that's passed to it. (and I swear that it worked external URLs that I tested) But if the retURL.Value is an external site some DNN framework setting is stripping it or blocking external URLs after this:
this.OnUserAuthenticated(eventArgs); I'm thinking there might be a setting I missed, though recently tons of cybersecurity tools have been added to our network not sure if that's doing the work on the redirect (but I'm not seeing that on the network debugging tools)
Ah, it sounds like you're going to need to do a bunch of troubleshooting to determine your final fix for this.
The URL you see in the browsers is not what IIS sees, so this may be part of the issue.
I'm typing this out from memory, but a standard URL may look something like the following example.
https://example.com/MyPath/MyPage
However, in the background, what is seen and processed by DNN might be something closer to this:
https://example.com/?TabI...1&something=else
So, you may want to add some debugging code to capture the raw and rendered values, then emit them to the log file. (I'm mentioning this method instead of debugging, because you'll probably need to do this in production.) This will help you know more about the values your app is seeing and what you're expecting.
Note: Sometimes a single new module could change everything on you without you realizing it. Keep your eyes open. :)
These Forums are dedicated to the discussion of DNN Platform.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.