Skip to content

Commit 0b84b65

Browse files
committed
minor refactor
Signed-off-by: rishichawda <[email protected]>
1 parent 3b1d8ba commit 0b84b65

File tree

5 files changed

+224
-104
lines changed

5 files changed

+224
-104
lines changed

src/components/search_bar.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const sizeClasses = {
2121
<div class="search-bar-container">
2222
<form
2323
method="GET"
24-
action={redirectToSearch ? "/search" : "#"}
24+
action={redirectToSearch ? "/search/" : "#"}
2525
class="relative max-w-md mx-auto"
2626
>
2727
<input

src/components/seo.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ const canonicalURL = new URL(
7474
},
7575
{
7676
"@type": "SearchAction",
77-
target: `${canonicalURL.origin}/search?q={search_term_string}`,
77+
target: `${canonicalURL.origin}/search/?q={search_term_string}`,
7878
query: "required name=search_term_string",
7979
}
8080
]

src/pages/404.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ const page_info = {
6868

6969
<!-- Secondary links with better visibility -->
7070
<div class="flex flex-wrap justify-center gap-6 pt-6 font-['Montserrat_Variable'] font-medium">
71-
<a href="/search" class="text-white hover:text-brand-100 transition-colors">Search</a>
71+
<a href="/search/" class="text-white hover:text-brand-100 transition-colors">Search</a>
7272
<a href="/articles/" class="text-white hover:text-brand-100 transition-colors">Articles</a>
7373
<a href="/gallery/" class="text-white hover:text-brand-100 transition-colors">Gallery</a>
7474
<a href="/contact/" class="text-white hover:text-brand-100 transition-colors">Contact</a>

0 commit comments

Comments
 (0)