Wrong username is identified if query params are present and user doesn't exist (#2838)

Co-authored-by: gitstart <gitstart@users.noreply.github.com>
Co-authored-by: Júlio Piubello da Silva Cabral <julio.piubello@gitstart.dev>
pull/2066/head^2
GitStart 2022-05-23 11:34:11 +01:00 committed by GitHub
parent 7d7c61a1ab
commit 2560b72596
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ export default function Custom404() {
const { t } = useLocale(); const { t } = useLocale();
const router = useRouter(); const router = useRouter();
const username = router.asPath.replace("%20", "-"); const username = router.asPath.replace("%20", "-").split(/[?#]/)[0];
const links = [ const links = [
{ {