Skip to content

Commit

Permalink
Merge pull request #720 from gagan-suie/dev
Browse files Browse the repository at this point in the history
Fix: ignore routing case sensitivity
  • Loading branch information
gagansuie authored Sep 25, 2023
2 parents 6d71a96 + f58b363 commit 5cf4ab5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mage-website",
"version": "0.1.02",
"version": "0.1.03",
"license": "GPL-3.0",
"private": true,
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion src/routes/[username]/+page.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { get, patch, putImage } from '$lib/api'
import { redirect, fail, error } from '@sveltejs/kit'

export const load = (async ({ params }: { params: any }) => {
const profile = await get(`users/search/username?username=${params.username}`)
const profile = await get(`users/search/username?username=${params.username.toLowerCase()}`)
if (profile.error) {
throw error(404)
}
Expand Down

0 comments on commit 5cf4ab5

Please sign in to comment.