diff --git a/ext/index/theme.php b/ext/index/theme.php index ca0984f72..b43fa2415 100644 --- a/ext/index/theme.php +++ b/ext/index/theme.php @@ -177,7 +177,7 @@ protected function display_page_images(Page $page, array $images): void $page->add_html_header(META(["name" => "robots", "content" => "noindex, nofollow"])); } $query = url_escape(Tag::implode($this->search_terms)); - $page->add_block(new Block(null, $this->build_table($images, "#search=$query"), "main", 10, "image-list")); + $page->add_block(new Block(null, $this->build_table($images, "?search=$query"), "main", 10, "image-list")); $this->display_paginator($page, "post/list/$query", null, $this->page_number, $this->total_pages, true); } else { $page->add_block(new Block(null, $this->build_table($images, null), "main", 10, "image-list")); diff --git a/themes/danbooru/index.theme.php b/themes/danbooru/index.theme.php index 47da9b5f4..6988577cd 100644 --- a/themes/danbooru/index.theme.php +++ b/themes/danbooru/index.theme.php @@ -33,7 +33,7 @@ public function display_page(Page $page, array $images): void $page->add_block(new Block("Search", $nav, "left", 0)); if (count($images) > 0) { if ($query) { - $page->add_block(new Block(null, $this->build_table($images, "#search=$query"), "main", 10)); + $page->add_block(new Block(null, $this->build_table($images, "?search=$query"), "main", 10)); $this->display_paginator($page, "post/list/$query", null, $this->page_number, $this->total_pages); } else { $page->add_block(new Block(null, $this->build_table($images, null), "main", 10));