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

Fallback to master language start page version #232

Merged
merged 4 commits into from May 4, 2023
Merged

Conversation

barteksekula
Copy link
Member

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

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.

Closes #221
We will cache the preferred language in HttpContext.Items and
use it instead of relying solely on IContentLanguageAccessor

Closes #221
We also need a trick with start page fallback if the translated
start page is not published
@barteksekula barteksekula added this to the 1.3.4 milestone May 3, 2023
@barteksekula barteksekula self-assigned this May 3, 2023
@barteksekula barteksekula merged commit 7bf241e into master May 4, 2023
1 check passed
@barteksekula barteksekula deleted the bugfix/221 branch May 4, 2023 08:52
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.

View & Edit link shows English content version when creating in another language version
2 participants