From c7190bb7f24f38ac7dba497ce7233647972cd0b9 Mon Sep 17 00:00:00 2001 From: divinity76 Date: Mon, 26 Jan 2026 12:29:30 +0100 Subject: [PATCH] Redirect to characters page on search It will make the "Search character" behavior less annoying. - It will make the back button start working, if you check a character, then click on another page, then click the browser back button, it will actually work. - Will make the browser history explicit, instead of generic entries https://tibiafunevo.hopto.org/?subtopic=characters you will have explicit entries like https://tibiafunevo.hopto.org/?subtopic=characters&name=Takeoded --- pages/characters.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pages/characters.php b/pages/characters.php index ba48f00..d6a0bc2 100644 --- a/pages/characters.php +++ b/pages/characters.php @@ -2,6 +2,11 @@ if(!defined('INITIALIZED')) exit; +if(!empty($_POST['name'])){ + header("Location: /?subtopic=characters&name=".rawurlencode((string)$_POST['name']), true, 303); + die(); +} + $name = ''; if(isset($_REQUEST['name'])) $name = (string) $_REQUEST['name'];