[META] support path / subfolder for a micro site

Created on 12 March 2019, over 5 years ago
Updated 1 August 2023, about 1 year ago

Plan for supporting micro site available via a path / subfolder and not only via a subdomain / domain


2/ Add a path Basefield on the micro site entity (As Node do it), and an option in the Micro Site type_url.
3/ Ensure this path is unique (Add a Constraint), and must not contains / (slash). A micro site patch can only contain alpha numeric characters (a-zA-Z0-9) and - or _
4/ Add a PathProcessor to handle discovery of an active Micro Site. the Inbound process should run before the process inboung of Language Path processor, and the outbound process should run after the Language outbound process. This path processor should handle inbound / outbound for entities with a Micro Site set on them (and for entities set on multiples Micro Sites, or All Micro Sites). Update the existing SiteFrontPageProcessor.
5/ Support this detection for the first path part, with the main Method getActiveSite() from the MicroSite Negociator.
6/ @TODO : Find a way (simpler if possible) to process the path (inbound/outbound) on page that are not entities. Exemple : the micro site menu overview, the tab content overview, handle request from an autocomplete field, etc.
7/ Write test for Micro Site configured with a path
8/ Run the tests written in 1/ and 7/ . Check everything works fine and commit.

✨ Feature request
Status

Needs work

Version

1.0

Component

Code

Created by

πŸ‡«πŸ‡·France flocondetoile Lyon

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024