Skip to content

Login doesn't redirect as expected #21

@ghost

Description

Given I am logged out
When I visit the page '/YHNFPBG/dashboard/'
And I login successfully
Then I am redirected to '/'

This is incorrect because the next parameter is there in the login page, so it should be redirecting me to the URL I originally requested

I believe this issue is caused by https://github.com/HermanMartinus/bearlytics/blob/main/project/views.py#L331 with the redirect hardcoded to 'websites'. But I don't know enough Django to know how best to redirect to the original URL safely

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions