• Login
  • Register

DNN Forums

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

A question on RedirectURL

You are not authorized to post a reply.

New Around Here

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:


    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

    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.  


      However, in the background, what is seen and processed by DNN might be something closer to this:  


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

      Will Strohl

      Upendo Ventures DNN experts since 2003
      Official provider of the DNN-based E-Commerce w/ Hotcakes Commerce Cloud and SLA support
      You are not authorized to post a reply.

      These Forums are dedicated to 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 send an email to [email protected]
      2. No Advertising. This includes 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