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

Fixes #12596: Sitemap Home Page Url #12729

Merged
merged 1 commit into from Oct 31, 2022
Merged

Fixes #12596: Sitemap Home Page Url #12729

merged 1 commit into from Oct 31, 2022

Conversation

jtkech
Copy link
Member

@jtkech jtkech commented Oct 28, 2022

Fixes #12596
Fixes #12167

It was already intended to work through the HomeRouteValuesAddressScheme when generating a link, but at some point we allowed contained items to be routable (also the Home Page) by introducing a new route value whose key is JsonPathKey.

The problem was that when the Home Page is not a contained item, the HomeRoute was still containing a JsonPathKey value, an empty string but not null. So in that case, when genarating the url the ExplicitValues was not matching the HomeRoute.

So in that case the solution was to set this entry to null or just remove this entry as done here, this when we publish an item to be the new Home, and then persist the new HomeRoute to Site Settings.

@sebastienros sebastienros merged commit 6d32c26 into main Oct 31, 2022
@sebastienros sebastienros deleted the jtkech/sitemap-home branch October 31, 2022 17:15
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.

Home Page Url In Sitemap using permalink Sitemap does not include the homepage of the site
3 participants