le bouton de retour (page de partage) renvoie à l'accueil si l'on ne venait pas d'une galerie

This commit is contained in:
Esenjin 2025-01-09 18:37:50 +01:00
parent fb1b86b471
commit 95564b33c3

View File

@ -30,7 +30,7 @@ $config = getSiteConfig();
<link rel="stylesheet" href="styles.css">
</head>
<body class="share-page">
<button onclick="window.close();" class="back-button">Retour à la galerie</button>
<button onclick="var referrer = document.referrer; if (referrer.includes('galeries.php')) { window.close(); } else { window.location.href='index.php'; }" class="back-button">Retour</button>
<div class="share-container">
<div class="share-image">