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
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
nextparameter is there in the login page, so it should be redirecting me to the URL I originally requestedI 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