Skip to content

OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.

docs: fix og for tools

Carl-Gerhard Lindesvärdc46cda12ebaa
diff --git a/apps/public/src/app/og/[...og]/route.tsx b/apps/public/src/app/og/[...og]/route.tsx
index 47ea4bc04..5ddd78ed5 100644
--- a/apps/public/src/app/og/[...og]/route.tsx
+++ b/apps/public/src/app/og/[...og]/route.tsx
@@ -84,6 +84,34 @@ async function getOgData(
data?.data.description || 'Whooops, could not find this page',
};
}
+ case 'tools': {
+ if (segments.length > 1) {
+ const tool = segments[1];
+ switch (tool) {
+ case 'ip-lookup':
+ return {
+ title: 'IP Lookup Tool',
+ description:
+ 'Find detailed information about any IP address including geolocation, ISP, and network details.',
+ };
+ case 'url-checker':
+ return {
+ title: 'URL Checker',
+ description:
+ 'Analyze any website for SEO, social media, technical, and security information. Get comprehensive insights about any URL.',
+ };
+ default:
+ return {
+ title: 'Tools',
+ description: 'Free web tools for developers and website owners',
+ };
+ }
+ }
+ return {
+ title: 'Tools',
+ description: 'Free web tools for developers and website owners',
+ };
+ }
default: {
const data = await pageSource.getPage(segments);
return {