Repository navigation
Conversation
The Slack invite URL is long and awkward to share. Add a /slack endpoint that redirects to it and point the footer link there, so the invite URL lives in one place. Use a 302 instead of a 301 because Slack invite links expire and get rotated; a cached permanent redirect would keep sending returning visitors to a dead invite. Exclude /slack from the language redirect in server.js and from Paraglide link localisation so it never becomes /de/slack. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Slack community invite URL is long and awkward to share. This adds
https://deplo.io/slackas a short link that redirects to it.Changes
src/routes/slack/+server.ts: new endpoint, redirects/slackand/slack/to the invite (same pattern as/terms)src/lib/components/FooterNavigation.svelte: footer now links to/slack, so the invite URL lives in one placeserver.js:/slackadded toexcludedPaths, so non-English browsers aren't bounced to/de/slackfirstsrc/lib/i18n.ts:/slackadded to Paraglideexclude, so the footer link isn't localised to/de/slackUses 302 rather than 301: Slack invite links expire and get rotated, and a cached permanent redirect would keep sending returning visitors to a dead invite.
Testing
Locally with
npm run build && node server.js:/slackand/slack/return302to the invite, also withAccept-Language: dehref="/slack"on localised pages🤖 Generated with Claude Code