Skip to content

Commit 4061109

Browse files
authored
fix: check prefix starts and ends with /
Bug was introduced in readthedocs#234 64ed88f
1 parent 64ed88f commit 4061109

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

notfound/extension.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ def validate_configs(app, *args, **kwargs):
280280
notfound_urls_prefix != default
281281
and notfound_urls_prefix
282282
and not (
283-
notfound_urls_prefix.startswith("/") or notfound_urls_prefix.endswith("/")
283+
notfound_urls_prefix.startswith("/") and notfound_urls_prefix.endswith("/")
284284
)
285285
):
286286
message = 'notfound_urls_prefix should start and end with "/" (slash)'

0 commit comments

Comments
 (0)