Wrong username is identified if query params are present and user doesn't exist (#2838)
Co-authored-by: gitstart <[email protected]> Co-authored-by: Júlio Piubello da Silva Cabral <[email protected]>
This commit is contained in:
1 file changed
+1
-1
@@ -15,7 +15,7 @@ export default function Custom404() {
|
||||
const { t } = useLocale();
|
||||
|
||||
const router = useRouter();
|
||||
const username = router.asPath.replace("%20", "-");
|
||||
const username = router.asPath.replace("%20", "-").split(/[?#]/)[0];
|
||||
|
||||
const links = [
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user