From 81594892ef61eaf66db5496244e1059dc9b3c4af Mon Sep 17 00:00:00 2001 From: Vivianne Langdon Date: Wed, 2 Mar 2022 03:42:29 -0800 Subject: [PATCH] Fix test for unit test requests --- bookwyrm/views/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookwyrm/views/helpers.py b/bookwyrm/views/helpers.py index 2f0ab0113..1569108d2 100644 --- a/bookwyrm/views/helpers.py +++ b/bookwyrm/views/helpers.py @@ -211,7 +211,7 @@ def maybe_redirect_local_path(request, model): """ # don't redirect empty path for unit tests which currently have this - if request.path == "" or request.path == model.local_path: + if request.path == "/" or request.path == model.local_path: return False new_path = model.local_path