apostrophe-workflow icon indicating copy to clipboard operation
apostrophe-workflow copied to clipboard

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

Open abea opened this issue 5 years ago • 1 comments

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.

abea avatar Sep 20 '19 16:09 abea

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 [email protected] 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

boutell avatar Sep 23 '19 16:09 boutell