Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customize function loginpage_hook to redirect Requested URL #54

Open
miguelurtado opened this issue May 25, 2020 · 1 comment
Open

Customize function loginpage_hook to redirect Requested URL #54

miguelurtado opened this issue May 25, 2020 · 1 comment

Comments

@miguelurtado
Copy link
Contributor

Suggestion: create settings and change function loginpage_hook to send wantsurl as parameter to return in API login URL.

    public function loginpage_hook() {
        global $SESSION;

        if ($this->should_login_redirect()) {
            $this->redirect($this->config->ssourl . "?wantsurl=" . $SESSION->wantsurl );
        }

        return true;
    }

Thanks for this plugin!

@dmitriim
Copy link
Member

@miguelurtado thanks for the suggestion.
Can you please describe the user case you would need this for better understanding?
And please feel free to submit a proper patch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants