Results 1 to 6 of 6
  1. #1
    Untanglit
    Join Date
    Oct 2014
    Posts
    26

    Post Custom captive portal URL redirect, broken?

    Guys, you might want to check this out. I have been trying to redirect to an URL after successful login to no success.

    My custom PY script is the same as your examples within the redirect part (custom hotel, custom login) and not even those examples would redirect to a URL totally untouched.
    target = str("http://" + host + uri)
    util.redirect(req, target)
    The only redirect that works is the "basic message" portal, but that one calls a different method on the form submit:
    <form autocomplete="off" method="post" action="/capture/handler.py/infopost">
    Which does work correctly and redirects on login:
    if (authResult == 0):
    if (len(captureSettings['redirectUrl']) != 0) and (captureSettings['redirectUrl'].isspace() == False):
    target = str(captureSettings['redirectUrl'])
    else:
    target = str("http://" + host + uri)
    util.redirect(req, target)
    return
    My custom portal and your examples call on customer_handler:
    <form id="form" autocomplete="off" method="post" action='/capture/handler.py/custom_handler?appid=(appid)'>
    This custom_handler mehtod does not seem to deal with the redirect in any way.

    I might be wrong about my assumptions, not a Python expert but it just does not work. Fresh Untangle 11 install btw and proper url format: www.example.com/example
    Last edited by samco; 11-04-2014 at 01:07 PM.

  2. #2
    Untangle Junkie dmorris's Avatar
    Join Date
    Nov 2006
    Location
    San Carlos, CA
    Posts
    17,747

    Default

    We will give them a test and see if we can replicate.
    Thanks.
    Attention: Support and help on the Untangle Forums is provided by volunteers and community members like yourself.
    If you need Untangle support please call or email support@untangle.com

  3. #3
    Untangler jcoffin's Avatar
    Join Date
    Aug 2008
    Location
    Sunnyvale, CA
    Posts
    9,195

    Default

    We have opened a bug for the redirect issue on the custom pages.
    Attention: Support and help on the Untangle Forums is provided by
    volunteers and community members like yourself.
    If you need Untangle support please call or email support@untangle.com

  4. #4
    Untanglit
    Join Date
    Oct 2014
    Posts
    26

    Default

    Thanks, whats the link for that report, bugzilla?

  5. #5
    Untanglit
    Join Date
    Oct 2014
    Posts
    26

    Default

    Quote Originally Posted by samco View Post
    Thanks, whats the link for that report, bugzilla?
    Nevermind, just found it by myself.
    Thanks folks.

  6. #6
    Untangler jcoffin's Avatar
    Join Date
    Aug 2008
    Location
    Sunnyvale, CA
    Posts
    9,195

    Default

    In case someone else find this thread:

    http://bugzilla.untangle.com/show_bug.cgi?id=12057
    Attention: Support and help on the Untangle Forums is provided by
    volunteers and community members like yourself.
    If you need Untangle support please call or email support@untangle.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

SEO by vBSEO 3.6.0 PL2