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

Ensure all internal links are relative #609

Merged
merged 12 commits into from
Jan 4, 2024
Merged

Conversation

ZedThree
Copy link
Member

@ZedThree ZedThree commented Jan 4, 2024

Replacement for #593 which ended up using a slow semi-brute force method. Instead, ensure project_url in templates is relative to current page when loading template, and pass every entity link through a relative-url filter.

Fixes #581

@amorison hopefully this is better, fixing all the links without the massive slowdown

@amorison
Copy link

amorison commented Jan 4, 2024

Thanks a lot! This seems to be working well, all the problems I had in #593 are now solved, and there is no significant impact on performance with this new strategy.

@ZedThree ZedThree merged commit e76e1c4 into master Jan 4, 2024
10 checks passed
@ZedThree ZedThree deleted the fix-absolute-paths-2 branch January 4, 2024 15:52
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.

|page|, |media|, and |url| are absolute instead of relative
2 participants