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

Unpublishing a users public page will return a 404 error #2366

Closed
1 task done
jobara opened this issue Nov 14, 2024 · 1 comment · Fixed by #2368 or #2369
Closed
1 task done

Unpublishing a users public page will return a 404 error #2366

jobara opened this issue Nov 14, 2024 · 1 comment · Fixed by #2368 or #2369
Labels
bug Something isn't working
Milestone

Comments

@jobara
Copy link
Collaborator

jobara commented Nov 14, 2024

Prerequisites

Describe the bug

When a user is viewing their public page and click the unpublish button, they are returned to the same page but get a 404 error.

To Reproduce

Steps to reproduce the behavior:

  1. Go to the dev site
  2. Create an individual user with the accessibility consultant role
  3. Create a public page and publish it
  4. Change the individual user's roles to include community connector
  5. View the published public page
  6. Click on "Unpublish"
  7. Notice the 404 error

Expected behavior

While it's sort of correct to get the 404 error as you're on the now unpublished page, it would probably be better to either redirect to the dashboard or edit view for the public page.

@jobara jobara added the bug Something isn't working label Nov 14, 2024
@jobara jobara added this to the 1.6.0 milestone Nov 14, 2024
@jobara
Copy link
Collaborator Author

jobara commented Nov 14, 2024

Typically when you unpublish the page it goes to the preview of the page. In this case we get the 404 because the page isn't previewable; it's missing values needed for the community connector role. When the page isn't previewable you get a 404 returned from the individual view policy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
1 participant