Skip to content

You can access pages reserved only for authenticated users as a guest #1838

@ghost

Description

Current behavior

You can access pages reserved only for authenticated users as a guest. Those pages are indexed by search engines. Landing on those pages (for example from search engine) will result in bad user experience as main menu and icons on the right side doesn't work.

Expected behavior

Guest should be redirected back or to the home page on routes dedicated for authenticated users.

Steps to reproduce the issue

Additional information

Maybe we should implement route middlewares, something like nuxt has (just an idea)
https://nuxtjs.org/guide/routing/#middleware

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions