Back navigation results in a 404 in the CP after creating and saving a new entry
Open
Nobody has claimed this yet.
bug
severity:minor
ux :smile:
- Dominant language
- PHP
- Stars
- 3.6k
- Forks
- 705
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 134
Description
Description
I'm experiencing 404 pages due to autosave draft URLs int he CP.
Steps to reproduce
- In a section, create a new entry
- Save the entry with
cmd + s(Save and continue editing) - Navigate back in the browser
You'll see that the back url takes you back to a draft url. Example: /admin/entries/pages/47?draftId=22&fresh=1
Additional info
Past issue that might give some additional insight: https://github.com/craftcms/cms/issues/4574
- Craft version: 3.4.3
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue in the Craft control panel using the listed steps and inspect the autosave draft URL produced after Save and continue editing. Done means browser back navigation returns to a valid entry page instead of a 404 caused by an invalid draft URL.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100