Skip to content

Commit fda782b

Browse files
committed
Fix error in the core robots.txt code && update the /u/[slug] new
addition. and also generate schema
1 parent 4c52353 commit fda782b

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

apps/web/src/app/robots.txt/route.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ export const GET = async (request: NextRequest) => {
5252
// Remove the trailing newline
5353
buildRobotsTxt = buildRobotsTxt.trim();
5454

55-
console.log(buildRobotsTxt);
56-
5755
return new Response(buildRobotsTxt, {
5856
status: 200,
5957
headers: {

apps/web/src/app/u/[slug]/route.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,5 @@ export const GET = async (
2323
if (data.length === 0) {
2424
return Response.redirect(new URL("/u/404", request.url), 307);
2525
}
26-
return Response.redirect(
27-
new URL(`/i/${data[0].linkedItem}`, request.url),
28-
301,
29-
);
26+
return Response.redirect(new URL(data[0].targetUrl, request.url), 301);
3027
};

0 commit comments

Comments
 (0)