-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Deleting page with language code doesn't delete the folder #3305
Comments
What happens is that the page gets deleted, but the folder remains. This causes the page to become a folder, so what you see is expected. I think this happens only with multi-language functionality turned on, it somehow fails to detect that the page does not exist in any language. |
Same problem with me with a bilingual site (english /irish) Also I've just opened a new issue #3214 for a strange behaviour in pages (admin) display... maybe that issue too is related to multi-language functionality |
I think that this has already been fixed while fixing another issue. As I cannot reproduce it anymore. |
I have a same problem, with a site only in spanish. |
I hope this will be fixed after the next release goes out. |
Should be fixed? |
Hello! I ran into this issue earlier, but whether or not a page is Published does not matter. I have a multilingual site, and it seems that if the last language file (default.en.md for instance) in the directory has been deleted, it fails to detect that it was the last file, and thus does not clean up the directory/folder that's left behind. The name shown in the admin panel then becomes the slug (directory name). Deleting it again does remove the entry, because then it sees the directory is empty. Whether it's deleted from the Pages view or clicking the Delete button when having the specific page open, does not make any difference. Cache on or off also makes no difference. Leaving 1 single language configured or having 4 (en, nl, pt, and es in my case) does not matter either. The main issue seems to be:
|
You're right. I just checked and the delete only deletes the current language unless you delete the "languageless" version of the page. |
This will be fixed to the next release. |
The logic now works in this way:
We should probably improve the modal to allow user to choose what he wants to do. |
Grav v1.7.1 - Admin v1.10.1
You first see that even if the page has the red dot (not published) the menu shows the contrary (green label Published)
The text was updated successfully, but these errors were encountered: