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

Unpublish/draft language pages URL is still acessible #741

Closed
lucashfreitas opened this issue Jan 10, 2022 · 2 comments
Closed

Unpublish/draft language pages URL is still acessible #741

lucashfreitas opened this issue Jan 10, 2022 · 2 comments

Comments

@lucashfreitas
Copy link

Plugin version: 4.4.5.

Hi There,

We want to partially add content for another language but keep the pages unpublished until we have completely finished and are ready to push it live.

I have a website that has English and Portuguese language version. English is the main language and we started to add content for Portuguese in some pages. Even-though those pages are unpublished and in draft mode, the URL https://mywebsite.com/pt/page is still accessible and google is indexing it. I was expecting that the website returns a 404 as the page is unpublished/draft in Portuguese.

Due this it doesn't seem possible to keep two languages having one of them unpublished/draft.

The solution for us was to remove completely all the Portuguese version for the pages, then if we access https://mywebsite.com/pt/page* it finally returns a 404 instead of loading the fallback english version.

I tried to go to global language settings and disable the fallback but it didn't work, second language pages that are unpublished/draft can still be accessed by URL and the content fallbacks to english.

Thanks,

@tractorcow
Copy link
Collaborator

Hi @lucashfreitas , you might find it easier to add the FluentFilteredExtension, which allows you to enable pages in each locale via a simple checkbox list.

image

You will need to update to fluent 5, but it's not a high-risk upgrade, and has minimal breakage from 4.x, but it'll give you much better functionality.

@lucashfreitas
Copy link
Author

Hey @tractorcow - thank you very much for the quick response. I will try it out!

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

No branches or pull requests

2 participants