Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

fixed sitemap

Steven Tey50b780dbcbd5
diff --git a/app/sitemap.ts b/app/sitemap.ts
index 079e5c911f..43d5684461 100644
--- a/app/sitemap.ts
+++ b/app/sitemap.ts
@@ -73,7 +73,7 @@ export default async function Sitemap() {
lastModified: new Date(post.publishedAt),
})),
...allTools.map((tool) => ({
- url: `https://${domain}/${tool}`,
+ url: `https://${domain}/tools/${tool}`,
lastModified: new Date(),
})),
...allLegalPosts.map((post) => ({
diff --git a/lib/middleware/link.ts b/lib/middleware/link.ts
index b1fc0869c1..3e1c12695b 100644
--- a/lib/middleware/link.ts
+++ b/lib/middleware/link.ts
@@ -49,7 +49,10 @@ export default async function LinkMiddleware(
ios?: string;
android?: string;
geo?: object;
- }>(`${domain}:${inspectMode ? key.slice(0, -1) : key}`);
+ }>(
+ // if inspect mode is enabled, remove the trailing `+` from the key
+ `${domain}:${inspectMode ? key.slice(0, -1) : key}`,
+ );
const {
url: target,