Browse Source

Fix redir argument creation

Miraty 3 years ago
parent
commit
c6cd6b59b4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      common/bottom.php

+ 1 - 1
common/bottom.php

@@ -5,7 +5,7 @@
 				echo "Connecté·e en tant que " . $_SESSION['username'] . "<br><a class='authButton' href='" . CONF['common']['prefix'] . "/auth/logout'>Se déconnecter</a>";
 			} else { ?>
 				Vous n'êtes pas connecté·e à un compte Niver
-				<br><a class="authButton" href="<?= CONF['common']['prefix'] ?>/auth/login?redir=<?= SERVICE ?>/<?= PAGE ?>">Se connecter</a>
+				<br><a class="authButton" href="<?= CONF['common']['prefix'] ?>/auth/login?redir=<?php if (SERVICE !== "") echo SERVICE . "/"; ?><?= PAGE ?>">Se connecter</a>
 			<?php } ?>
 			</small>
 		</footer>