New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apphooked pages not working without trailing-slash #6541

wfehr opened this Issue Oct 17, 2018 · 0 comments


None yet
1 participant

wfehr commented Oct 17, 2018

I am currently trying to get my cms running without trailing-slashes.
This works well for most of the pages, but unfortunately not for apphooked ones.

I made a test app for this case: Gist
(for redirecting from 'xy/' to 'xy' I am using this middleware)

When I add this app to a page with slug my_foobar_slug and publish it, it only shows the expected "Hello World" when I call the URL with a trailing-slash. Otherwise it just shows me a "normal" cms-page.

Currently I don't see a way to get around this, except for either leaving the trailing-slash or outputting "Hello World" on a "sub"-URL like /my_foobar_slug/foo which still lets /my_foobar_slug be shown as a "normal" cms-page.

The won't let missing trailing-slashes go through because of (current) line 244 -> to the line

Is there some workaround available that I didn't see so far or is it possible to enable apphooks without trailing-slash somehow?

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