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

extensions: render default templates with default static_url #1435

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

minrk
Copy link
Contributor

@minrk minrk commented Jun 27, 2024

avoids rendering errors or incorrect URLs for error pages, which must use the base static_url function

closes #1434

A probably cleaner approach would be to attach static_url to jinja environment globals instead of a method on the Handler, but the compatibility implications of switching to that are more complicated than I felt comfortable tackling.

avoids rendering errors or incorrect URLs for error pages,
which should use the base static_url function
@minrk minrk added the bug label Jun 27, 2024
@Zsailer
Copy link
Member

Zsailer commented Jul 12, 2024

Thank you, @minrk. Acknowledging this PR ❤️ Sorry for the slow reply here, was OOO the past couple of weeks.

I'll look at this closer later today or Monday at the latest.

@Zsailer
Copy link
Member

Zsailer commented Jul 18, 2024

Test failures appear unrelated. I'll look into these in a separate PR.

@Zsailer Zsailer enabled auto-merge (squash) July 18, 2024 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

extensions cannot render error pages without static_paths configuration
2 participants