craftcms / craftcms/cms

Back navigation results in a 404 in the CP after creating and saving a new entry

Open
#5,598 0 comments 0 reactions 0 assignees View on GitHub

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
  1. In a section, create a new entry
  2. Save the entry with cmd + s (Save and continue editing)
  3. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.