Skip to content

Comments

New feature: Default destination#32

Merged
fdocr merged 1 commit intofdocr:mainfrom
jomashopio:FeatureDefaultDestination
Dec 15, 2025
Merged

New feature: Default destination#32
fdocr merged 1 commit intofdocr:mainfrom
jomashopio:FeatureDefaultDestination

Conversation

@jomaOliver
Copy link
Contributor

Add DEFAULT_DESTINATION Redirect Logic

This PR adds support for a DEFAULT_DESTINATION environment variable:

  • If r is missing on /, redirect to DEFAULT_DESTINATION.
  • If any path is requested without r, redirect to DEFAULT_DESTINATION + path.
  • If DEFAULT_DESTINATION is not set, fallback behavior remains the same.

Tests updated to cover both scenarios and simplify ENV handling.

Copy link
Owner

@fdocr fdocr left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution @jomaOliver!

@fdocr fdocr merged commit fe03d29 into fdocr:main Dec 15, 2025
2 checks passed
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