Skip to content

Header Sign in and Register buttons drop the return URL #355

Open

Description

@arbrandes

Description

When an anonymous user clicks Sign in or Register in the shell header, they don't come back to the page they were on.

The legacy learning header sent the current page along: Register went to /register?next=<current page>, and Sign in used getLoginRedirectUrl() with the current URL.

The shell's LoginButton and RegisterButton link to the bare login and register URLs, with no next. This matters most on course pages, which is exactly where the legacy learning header was used.

Found by reading the code. I haven't reproduced it in a browser yet.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions