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 jiggering #1579

Merged
merged 2 commits into from
Aug 20, 2024
Merged

Url jiggering #1579

merged 2 commits into from
Aug 20, 2024

Conversation

TomWoodward
Copy link
Member

https://openstax.atlassian.net/browse/DISCO-436

mostly i'm doing this for the correct html_url on blog posts for the impact stories

there were some places in the code that were customizing their urls with only the get_sitemap_urls override, but the documentation recommends using get_url_parts. the url generated by get_url_parts also seems to be used by the sitemap code, so in some place i just removed the sitemap override with the url parts override

removed new subjects feature flag

fixed flex page urls (they were inheriting the / override from rootpage)

marked impact stories and deprecated book index as non-navigable by returning none from url_parts, as suggested in the documentation. weirdly this doesn't omit it from the sitemap, so you need to override that too or None appears in the sitemap

the only places i left the sitemap overrides are where it was generating more than one url or explicitly hiding stuff

@TomWoodward TomWoodward requested a review from mwvolo August 20, 2024 15:36
@TomWoodward TomWoodward merged commit e1d0121 into main Aug 20, 2024
1 of 2 checks passed
@TomWoodward TomWoodward deleted the url-jiggering branch August 20, 2024 16:02
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