Skip to content

Commit 15c41d8

Browse files
committed
fix: share URL must point to config page (not alias) for OG tags to work
1 parent d3cf079 commit 15c41d8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/routes/dashboard/+page.svelte

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -451,9 +451,7 @@
451451
}
452452
453453
function shareConfig(config: Config) {
454-
const configUrl = config.alias
455-
? `https://openboot.dev/${config.alias}`
456-
: `https://openboot.dev/${$auth.user?.username}/${config.slug}`;
454+
const configUrl = `https://openboot.dev/${$auth.user?.username}/${config.slug}`;
457455
const text = `My dev stack: ${config.name} — set up in minutes with @openbootdotdev`;
458456
const hashtags = 'OpenBoot,macOS,DevTools';
459457
const tweetUrl = `https://twitter.com/intent/tweet?text=${encodeURIComponent(text)}&url=${encodeURIComponent(configUrl)}&hashtags=${encodeURIComponent(hashtags)}`;

0 commit comments

Comments
 (0)