Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ?project= instead of /-/ #1959

Merged
merged 5 commits into from
Jan 17, 2025
Merged

Use ?project= instead of /-/ #1959

merged 5 commits into from
Jan 17, 2025

Conversation

simoncozens
Copy link
Contributor

@simoncozens simoncozens commented Jan 16, 2025

This fixes #1960, part of #1952. Supports redirecting existing URLs. I've chosen ?project= as the query string parameter to hold the project ID. Assumes that URLs requesting static assets do not have a query string attached.

Copy link
Collaborator

@justvanrossum justvanrossum left a comment

Choose a reason for hiding this comment

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

Looks good, thanks! I left one comment inline.

This would also need a change in Fontra Pak, but that conflicts with this open PR. I'll take care of that.

Thanks to the redirect nothing breaks: excellent!

src/fontra/core/server.py Outdated Show resolved Hide resolved
Co-authored-by: Just van Rossum <[email protected]>
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.

Rework URL scheme so the "project identifier" becomes a query key/value
2 participants