grav-plugin-admin icon indicating copy to clipboard operation
grav-plugin-admin copied to clipboard

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

Open matthew-dean opened this issue 8 years ago • 4 comments

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.

matthew-dean avatar Nov 05 '16 00:11 matthew-dean

Replicated both problems. Problem 1) happens only with multilang enabled, so it must be caused by that.

flaviocopes avatar Nov 10 '16 16:11 flaviocopes

Weird as it's not the "usual" panel for unsaved changes:

screen shot 2016-11-10 at 18 07 37

but it's the browser directly:

screen shot 2016-11-10 at 18 07 31

flaviocopes avatar Nov 10 '16 17:11 flaviocopes

+1 same issue

nixis avatar Dec 25 '16 17:12 nixis

Same issue. It happens when I'm on the Configuration > Languages page (and changes are indeed not saved).

marcocevoli avatar Dec 16 '21 16:12 marcocevoli