Skip to content

fix(docs): really fix the links in Advent of CALM#1892

Merged
rocketstack-matt merged 1 commit intofinos:mainfrom
markscott-ms:advent-of-calm-content
Nov 29, 2025
Merged

fix(docs): really fix the links in Advent of CALM#1892
rocketstack-matt merged 1 commit intofinos:mainfrom
markscott-ms:advent-of-calm-content

Conversation

@markscott-ms
Copy link
Contributor

and make dev mirror prod behaviour

Description

Okay, so astro can be annoying. In prod (disted) mode, we have pages going to directories, and it redirects requests for /day/2 to /day/2/.

In dev it doesn't do that redirect, it serves the content on both routes.

This is an absolute pain for relative links.

This PR fixes it, and also disables the non-directory route in dev.

Type of Change

  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 📚 Documentation update
  • 🎨 Code style/formatting changes
  • ♻️ Refactoring (no functional changes)
  • ⚡ Performance improvements
  • ✅ Test additions or updates
  • 🔧 Chore (maintenance, dependencies, CI, etc.)

Affected Components

  • CLI (cli/)
  • Shared (shared/)
  • CALM Widgets (calm-widgets/)
  • CALM Hub (calm-hub/)
  • CALM Hub UI (calm-hub-ui/)
  • Documentation (docs/)
  • VS Code Extension (calm-plugins/vscode/)
  • Dependencies
  • CI/CD

Commit Message Format ✅

Testing

  • I have tested my changes locally
  • I have added/updated unit tests
  • All existing tests pass

Checklist

  • My commits follow the conventional commit format
  • I have updated documentation if necessary
  • I have added tests for my changes (if applicable)
  • My changes follow the project's coding standards

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes relative link issues in the Advent of CALM documentation by ensuring that the development environment mirrors production behavior with respect to trailing slashes and directory-based routing. The changes update all relative links to work correctly with Astro's trailingSlash: 'always' configuration.

Key Changes:

  • Added trailingSlash: 'always' to Astro config to enforce consistent URL handling in dev and prod
  • Updated all navigation links to use proper relative paths with trailing slashes
  • Adjusted Calendar component links to work with directory-based routing

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
astro.config.mjs Added trailingSlash: 'always' configuration to ensure dev environment mirrors production behavior
Calendar.astro Updated day links from ./day/${day} to day/${day}/ to work correctly with directory-based routing
day/[day].astro Updated all navigation links (prev/next/home) to use correct relative paths with trailing slashes for directory-based routing

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@rocketstack-matt rocketstack-matt merged commit c93aaaa into finos:main Nov 29, 2025
19 checks passed
@markscott-ms markscott-ms deleted the advent-of-calm-content branch November 29, 2025 08:13
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.

3 participants