diff --git a/seal/admin.py b/seal/admin.py index 456c542..7f4f720 100644 --- a/seal/admin.py +++ b/seal/admin.py @@ -81,7 +81,7 @@ def inaccessible_callback(self, name, **kwargs): Returns: redirect: A Flask redirect to the login page. """ - return redirect(url_for('login', next=request.url)) + return redirect(url_for('login', next=request.full_path)) def is_visible(self): # This view won't appear in the menu structure @@ -162,7 +162,7 @@ def inaccessible_callback(self, name, **kwargs): Returns: redirect: A Flask redirect to the login page. """ - return redirect(url_for('login', next=request.url)) + return redirect(url_for('login', next=request.full_path)) class SampleView(CustomView):