resolve aliases on input as well, so the target shows in the url
This commit is contained in:
parent
4a2c47459c
commit
5c13fcac62
@ -147,7 +147,7 @@ class Index extends Extension {
|
|||||||
global $config, $database, $page, $user;
|
global $config, $database, $page, $user;
|
||||||
if($event->page_matches("post/list")) {
|
if($event->page_matches("post/list")) {
|
||||||
if(isset($_GET['search'])) {
|
if(isset($_GET['search'])) {
|
||||||
$search = url_escape(trim($_GET['search']));
|
$search = url_escape(implode(" ", Tag::resolve_list(trim($_GET['search']))));
|
||||||
if(empty($search)) {
|
if(empty($search)) {
|
||||||
$page->set_mode("redirect");
|
$page->set_mode("redirect");
|
||||||
$page->set_redirect(make_link("post/list/1"));
|
$page->set_redirect(make_link("post/list/1"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user