Skip to content

Commit c5372f6

Browse files
authored
Merge pull request #133 from marccampbell/issue/132
Lowercase the hostname from the homepage
2 parents 7ba5f91 + af7d4d5 commit c5372f6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

template/home.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ <h1 class="text-center site-title">doc.crds.dev</h1>
2424
const input = useRef(null);
2525

2626
const onSubmit = e => {
27-
window.location.assign(`/${url}`);
27+
const urlParts = url.split("/");
28+
urlParts[0] = urlParts[0].toLowerCase();
29+
window.location.assign(`/${urlParts.join("/")}`);
2830
e.preventDefault();
2931
};
3032

0 commit comments

Comments
 (0)