Piwigo -> Photos > Batch management -> filter on one album -> Edit one photo -> delete this photo
Then the next page displayed is "homepage"
and it is needed to go back to "admin" > Photos > and so on
Done several times, identical behaviour each time.
Piwigo 12.2.0
OS: Linux / Rapsberry pi / 11 (bullseye)
PHP: 7.4.28
MySQL: 5.5.5-10.5.15-MariaDB-0+deb11u1
Graphics library: External ImageMagick 6.9.11-60
Hi,
Piwigo -> Photos > Batch management -> filter on one album -> Edit one photo -> delete this photo
Then the next page displayed is "homepage"
and it is needed to go back to "admin" > Photos > and so on
Done several times, identical behaviour each time.
Piwigo 12.2.0
OS: Linux / Rapsberry pi / 11 (bullseye)
PHP: 7.4.28
MySQL: 5.5.5-10.5.15-MariaDB-0+deb11u1
Graphics library: External ImageMagick 6.9.11-60
<!-- github-sync-id:1263440735 -->
if (isset($_GET['delete']))
{
check_pwg_token();
delete_elements(array($_GET['image_id']), true);
invalidate_user_cache();
// where to redirect the user now?
//
// 1. if a category is available in the URL, use it
// 2. else use the first reachable linked category
// 3. redirect to gallery root
Where would you expect Piwigo to redirect you once the photo is deleted?
this is the expected behavior:
```
if (isset($_GET['delete']))
{
check_pwg_token();
delete_elements(array($_GET['image_id']), true);
invalidate_user_cache();
// where to redirect the user now?
//
// 1. if a category is available in the URL, use it
// 2. else use the first reachable linked category
// 3. redirect to gallery root
```
Where would you expect Piwigo to redirect you once the photo is deleted?
<!-- github-comment-id:1261179765 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Hi,
Piwigo -> Photos > Batch management -> filter on one album -> Edit one photo -> delete this photo
Then the next page displayed is "homepage"
and it is needed to go back to "admin" > Photos > and so on
Done several times, identical behaviour each time.
Piwigo 12.2.0
OS: Linux / Rapsberry pi / 11 (bullseye)
PHP: 7.4.28
MySQL: 5.5.5-10.5.15-MariaDB-0+deb11u1
Graphics library: External ImageMagick 6.9.11-60
Any news on this issue?
this is the expected behavior:
Where would you expect Piwigo to redirect you once the photo is deleted?