getgrav / getgrav/grav-plugin-admin

(two bugs) Even after saving a page, switching languages generates a warning

Open
#853 4 comments 0 reactions 0 assignees View on GitHub
bug replicated
Dominant language
PHP
Stars
377
Forks
225
Avg merge
11h 51m
Merged PRs (30d)
4

Description

### First bug - warning is generated
To reproduce:

1. Edit a page.
2. Click "Save".
3. Switch the language

**BUG: The warning, "Do you want to leave this site? Changes you made may not be saved." will appear. Clicking "Leave" continues.** _(Should not prompt since page is saved.)_

### Second bug - can no longer switch languages
To reproduce:

1. Edit a page.
2. Click "Save".
3. Switch the language
4. The warning, "Do you want to leave this site? Changes you made may not be saved."
5. Click "Stay"
6. Now, try to switch the language

**BUG: No warning appears, nor does it navigate to the other language. Page has to be refreshed before the language switcher works again.**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.