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

URL slash fixes #1614

Merged
merged 5 commits into from
Feb 27, 2025
Merged

URL slash fixes #1614

merged 5 commits into from
Feb 27, 2025

Conversation

mwvolo
Copy link
Member

@mwvolo mwvolo commented Feb 25, 2025

https://openstax.atlassian.net/browse/CORE-139

  • fix the 500 error reported when viewing impact stories
  • move blocks around on the impact page (might also need FE work), requested by Veronica
  • refactor middleware and sitemap code (moving sitemap generation outside wagtail)

@mwvolo mwvolo changed the title Impact story 500 fix URL slash fixes Feb 25, 2025
@mwvolo mwvolo requested a review from TomWoodward February 26, 2025 01:03
def build_template(self, page, page_url):
page_url = page_url.rstrip('/')
Copy link
Member Author

Choose a reason for hiding this comment

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

remove the last / from the path

Copy link
Member

@TomWoodward TomWoodward left a comment

Choose a reason for hiding this comment

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

I have no idea what I'm looking at but it looks aright

@mwvolo mwvolo merged commit 7cbac13 into main Feb 27, 2025
6 of 7 checks passed
@mwvolo mwvolo deleted the impact-story-500-fix branch February 27, 2025 21:24
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