Skip to content

Resolving unamed url raised Resolver404 and prevent preview#270

Open
weber-s wants to merge 1 commit into
labd:masterfrom
weber-s:fix_resolver404
Open

Resolving unamed url raised Resolver404 and prevent preview#270
weber-s wants to merge 1 commit into
labd:masterfrom
weber-s:fix_resolver404

Conversation

@weber-s
Copy link
Copy Markdown

@weber-s weber-s commented Apr 20, 2026

Hello!

In our setup, the resolver in the middleware couldn't resolve correclty the url "/":

ipdb> request.path_info
'/'
ipdb> request
<WSGIRequest: GET '/'>

And so the resolve(request.path_info) lead to Resolver404, that breaks the middleware and the preview was always redirected to the home.

This PR fix it.

However, I did not understand why the middleware is having this request of path "/" , since I am in a preview.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant