advanced-cms / advanced-reviews

This is an Open Source add-on that improves the reviewing process and lets external users to view & review content items or whole projects without the need to access the Edit Mode. Created and maintained by Bartosz Sekuła and Grzegorz Wiecheć
Apache License 2.0
17 stars 15 forks source link

Fallback to master language start page version #232

Closed barteksekula closed 1 year ago

barteksekula commented 1 year ago

If the default router fails to route to the content we should retry with master language as the first url segment. It may happen that user has a translated page but does not have a published start page in that version.

Fallback to master start page if not published We also need a trick with start page fallback if the translated start page is not published

Make sure to use the language token was created in We will cache the preferred language in HttpContext.Items and use it instead of relying solely on IContentLanguageAccessor

Closes #221