DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

A question on RedirectURL

Sort:
You are not authorized to post a reply.





New Around Here





    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)






    Veteran Member





      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.  :) 

      You are not authorized to post a reply.

      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:

      1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
      2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
      3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
      4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
      5. No Flaming or Trolling.
      6. No Profanity, Racism, or Prejudice.
      7. Site Moderators have the final word on approving / removing a thread or post or comment.
      8. English language posting only, please.

      Would you like to help us?

      Awesome! Simply post in the forums using the link below and we'll get you started.

      Get Involved