Skip to content

fix(awards-list): use absolute slugs for award project links - #483

Merged
tofran merged 2 commits into
mainfrom
fix/awards-list-relative-links
Sep 17, 2026
Merged

tofran merged 2 commits into
mainfrom
fix/awards-list-relative-links

Conversation

@tofran

@tofran tofran commented Sep 17, 2026

Copy link
Copy Markdown
Member

Storyblok's full_slug has no leading slash, so award links resolved relative to the current path (e.g. /services/projects/hey-harper → 404). Normalise through sanitizeSlug, and in drawer.open() so the drawer's expand link is absolute too.

Storyblok's full_slug has no leading slash, so award links resolved
relative to the current path (e.g. /services/projects/hey-harper → 404).
Normalise through sanitizeSlug, and in drawer.open() so the drawer's expand link is absolute too.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The license guidance conflicts with the checked-in AGPL terms, and the PostHog environment variable naming is inconsistent.

Pull request overview

Fixes award project links by normalizing Storyblok slugs and makes drawer URLs absolute.

Changes:

  • Applies sanitizeSlug to award links and drawer URLs.
  • Switches PostHog host configuration to dynamic public environment access.
  • Updates license guidance in the README.
File summaries
File Description
src/routes/+layout.svelte Uses dynamic PostHog host configuration.
src/lib/stores/drawer.ts Normalizes drawer slugs.
src/components/proposals/proposal-awards.svelte Normalizes proposal award links.
src/components/blocks/awards-list.svelte Generates absolute award project links.
README.md Revises licensing guidance.
Review details
  • Files reviewed: 5/5 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/routes/+layout.svelte
if (browser) {
posthog.init(PUBLIC_POSTHOG_PROJECT_TOKEN, {
api_host: PUBLIC_POSTHOG_POSTHOG_API_HOST || 'https://eu.posthog.com',
api_host: env.PUBLIC_POSTHOG_POSTHOG_API_HOST || 'https://eu.posthog.com',
Comment thread README.md
@tofran
tofran merged commit 5fca457 into main Sep 17, 2026
3 checks passed
@tofran
tofran deleted the fix/awards-list-relative-links branch September 17, 2026 16:07

This branch was successfully deployed

1 active deployment
preview — 9f4fd4a6 Deployed Sep 17, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants