We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dddcc4e commit faa85d5Copy full SHA for faa85d5
1 file changed
otterwiki/wiki.py
@@ -19,6 +19,7 @@
19
make_response,
20
redirect,
21
render_template,
22
+ request,
23
send_file,
24
url_for,
25
)
@@ -512,7 +513,7 @@ def view(self):
512
513
toast(
514
"You lack the permissions to access this wiki. Please login."
515
- return redirect(url_for("login", next="/"+self.pagename_full))
516
+ return redirect(url_for("login", next=request.full_path))
517
# handle case that page doesn't exists
518
self.exists_or_404()
519
0 commit comments