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

Entry: "Save and add another" results in 404 Entry not found #4614

Closed
swthate opened this issue Jul 19, 2019 · 3 comments
Closed

Entry: "Save and add another" results in 404 Entry not found #4614

swthate opened this issue Jul 19, 2019 · 3 comments

Comments

@swthate
Copy link

swthate commented Jul 19, 2019

Description

I was excited to see in one of the recent changelogs that our dear "Save and add another" has made a comeback. However, after clicking it you receive a prompt asking if you want to "leave the page." This prompt also warns you that any changes you made may not be saved. Rather than the entry being saved and you being redirected to a new entry form page you instead are greeted with:

HTTP 404 – Not Found – yii\web\NotFoundHttpException

Entry not found

If you save the entry normally and then select "save and add another" it behaves as expected. Also, didn't a recent changelog note that you should be redirected back to the entries index after saving an entry now? (update: When you save the entry for the first time it stays on that entry edit page, but when you hit save a second time it then brings you to the index -- is that expected behavior?)

Steps to reproduce

  1. Update to 3.2.4.1
  2. Begin to add a new entry
  3. Click "Save and add another"
  4. Click "Leave" at the prompt

Additional info

  • Craft version: 3.2.4.1
  • PHP version: 7.2
  • Database driver & version: MySQL 5.7.23
  • Plugins & versions: none
@brandonkelly
Copy link
Member

Thanks for reporting that! Just fixed for the next release.

@marionnewlevant
Copy link

I get 'unknown error', and then it saves, and then the new entry page. But I don't think I should get the 'Leave site? Changes you made may not be saved' alert at all. Craft 3.2.7
@brandonkelly

@brandonkelly
Copy link
Member

@marionnewlevant Thanks for pointing that out. I’m seeing that if you try to save the draft right in the middle of the form getting autosaved. Just fixed that for the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants