fix: 🐛 redirecting to 404
This commit is contained in:
parent
88ec069c55
commit
17814b3478
|
@ -1,9 +1,9 @@
|
||||||
import { getMetadataForIdentifier } from '$lib/avatars.js';
|
import { getMetadataForIdentifier } from "$lib/avatars.js"
|
||||||
import { error, redirect } from '@sveltejs/kit';
|
import { error, redirect } from "@sveltejs/kit"
|
||||||
|
|
||||||
export async function GET({ params : { identifier } }) {
|
export async function GET({ params: { identifier } }) {
|
||||||
let { source } = await getMetadataForIdentifier(identifier)
|
let { source } = await getMetadataForIdentifier(identifier)
|
||||||
let finalUrl: URL | string = `/info/${identifier}`
|
let finalUrl: URL | string = `/user/${identifier}`
|
||||||
|
|
||||||
if (source) {
|
if (source) {
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue