resolve aliases on input as well, so the target shows in the url

This commit is contained in:
Shish 2013-06-20 22:59:42 +01:00
parent 4a2c47459c
commit 5c13fcac62

View File

@ -147,7 +147,7 @@ class Index extends Extension {
global $config, $database, $page, $user;
if($event->page_matches("post/list")) {
if(isset($_GET['search'])) {
$search = url_escape(trim($_GET['search']));
$search = url_escape(implode(" ", Tag::resolve_list(trim($_GET['search']))));
if(empty($search)) {
$page->set_mode("redirect");
$page->set_redirect(make_link("post/list/1"));