Skip to content
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

Fix #7884 Redirects: 'target page route' with non-RoutablePageMixin pages #7896

Merged
merged 3 commits into from Jan 27, 2022

Conversation

ababic
Copy link
Contributor

@ababic ababic commented Jan 27, 2022

Resolves #7884

There's no easy way to toggle fields based on chooser selection, so it makes sense for the field to be hidden for now (as per @gasman's comment).

It should no longer be possible to created an invalid redirect from within the UI, but have accounted for the AttributeError anyway, as there are other potential ways to bump into that (e.g. switching to a branch where the specific page type is missing)

The UI should be looked at more holistically, as the issues are bigger than just this one field.

@squash-labs
Copy link

squash-labs bot commented Jan 27, 2022

Manage this branch in Squash

Test this branch here: https://ababicfix7884-redirect-page-ro-un0wu.squash.io

@gasman gasman merged commit b6c80e6 into wagtail:main Jan 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Redirects: 'target page route' with non-RoutablePageMixin pages causes server error
3 participants