• Rok Megli?

    (@rokmeglic)


    Project Requirement: Custom Redirect URL After Successful Login

    For one of our projects, we aim to enhance user experience by allowing administrators to specify a custom redirect URL for users after a successful login.

    Proposal: Add Custom Field to WordPress Settings

    We propose adding a custom field to the WordPress Settings section. This field would enable administrators to define the URL to which users will be redirected upon successful login.

    Current Implementation: Limitations

    The existing documentation references a redirectTo parameter, which is promising. However, our investigation reveals that this parameter is not currently customizable by administrators.

    Action Plan: Enhancing Administrator Control

    Our objective is to empower administrators to determine the post-login redirect URL. To achieve this, we will explore avenues to make the redirectTo parameter configurable through WordPress Settings.

    Next Steps: Development Considerations

    1. Code Review: Examine the existing codebase, focusing on the redirectTo parameter and its implementation.
    2. Custom Field Addition: Integrate a customizable field within the WordPress Settings interface to capture the desired redirect URL.
    3. Backend Modification: Adjust the backend logic to utilize the administrator-defined redirect URL when processing successful logins.
    4. Testing: Testing will be conducted to ensure seamless functionality and compatibility with various scenarios on our project site.

    SimpleSAMLphp Documentation

    ReturnTo (string) The URL the user should be returned to after authentication. The default is to return the user to the current page.

    Note : The URL returned by this function is static, and will not change. You can easily create your own links without using this function. The URL should be:

    …/simplesaml/module.php/core/login/?ReturnTo=

    • This topic was modified 10 months ago by Rok Megli?.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom redirectTo field after succesfull login’ is closed to new replies.