apostrophecms / apostrophe-workflow

Provides approval-based workflow and localization capabilities for projects that need them. An optional component of the Apostrophe CMS.
MIT License
36 stars 20 forks source link

`apos.workflow.localizations()` isn't available on 404 pages #266

Open abea opened 5 years ago

abea commented 5 years ago

I'm running into what is hopefully an edge case where logged out I'm in the Default locale and can't switch to a language locale. But regardless this would mean that using the suggested template snippet for a locale switcher would result in no options in the switcher.

boutell commented 5 years ago

Huh yeah that's a tricky 'un. We might need a slightly different approach when there is no page to get a localized slug for.

On Fri, Sep 20, 2019 at 12:39 PM Alex Bea notifications@github.com wrote:

I'm running into what is hopefully an edge case where logged out I'm in the Default locale and can't switch to a language locale. But regardless this would mean that using the suggested template snippet for a locale switcher would result in no options in the switcher.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/apostrophecms/apostrophe-workflow/issues/266?email_source=notifications&email_token=AAAH27LBUZH5HMJCTXKRFQLQKT4FZA5CNFSM4IYZDLJ2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HMXF34A, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAH27P3EBCWJGQNN4FOEU3QKT4FZANCNFSM4IYZDLJQ .

-- Chief Software Architect Apostrophe Technologies Pronouns: he / him / his