integreat-cms icon indicating copy to clipboard operation
integreat-cms copied to clipboard

Exclude reserved namespaces from possible slugs

Open timobrembeck opened this issue 2 years ago • 0 comments

Motivation

Some urls are reserved for the linking of the webapp, e.g.

  • Global patterns:

    • https://integreat.app/landing
    • https://integreat.app/main-disclaimer
    • https://integreat.app/licenses
    • https://integreat.app/recommend
  • Region-specific patterns:

    • https://integreat.app/testumgebung/de/disclaimer
    • https://integreat.app/testumgebung/de/news/local
    • https://integreat.app/testumgebung/de/events
    • https://integreat.app/testumgebung/de/locations
    • https://integreat.app/testumgebung/de/offers
    • https://integreat.app/testumgebung/de/search

Proposed Solution

  • We should prevent landing, main-disclaimer, licenses and recommend as slugs for regions
  • We should prevent disclaimer, news, events, locations, offers and search as slugs for pages.

(probably it makes sense to put these lists in the settings file)

Alternatives

Additional Context

Design Requirements

timobrembeck avatar Oct 25 '22 09:10 timobrembeck