-
Bug
-
Resolution: Fixed
-
Blocker
-
1.3
-
None
-
-
Yes
-
Empty show more show less
The multi site support, mainly the detection of the site, must be improved.
Use Cases
This is not trivial as we have to support various scenarios:
1) authoring without domain
- detection must work without the domains
- if done by the path the solution conflicts with the i18n support
- add a site parameter: currently done by /sitename/shortURI links
2) i18n
- links might be using the i18n pattern: /de/mypage
- a simple path matching does not work
- multi site filter has to be in front of the i18n filter as the site defines the i18n configuration
3) cross site links
- public: use the domain on public sites if defined
- author: use /sitename/shortURI link
4) subsites
- one can map sites to subpathes
- /section -> /mysite/section
5) virtual uri mappings
- see
MGNLETK-27as an example
6) no domain
- sites don't necessarily have a domain definition
- respect that, this sites can always match
7) sitename and site-root name can be the same
- don't remove the site-root name if it looks like being the sitename
Different ways a page can be accessed (should we reduce that? probably not)
- full path (for instance if opened in the website tree)
- /sitename/shortURI
- domain/shortURI
Solution/Ideas
- write all essential test cases
- use best match strategy
- domain
- site
- mapping
- extract a clean URI method
- either in the filter or in the sitemanager by introducing a return value object in getAssignedSite(domain, uri)
- tree opens the page by using the link transformer (no conflict with other links)
- but might not be possible with the current tree
- combine mutlisite detection and i18n detection
- I don't like this because this just hides the problem and other dynamic link generation might cause the same issue
The relevant Classes:
- info.magnolia.module.extendedtemplatingkit.filters.MultiSiteFilter
- info.magnolia.module.extendedtemplatingkit.ETKLinkTransformerManager
- info.magnolia.module.extendedtemplatingkit.sites.ETKSiteManager
- caused by
-
MAGNOLIA-3212 NodeDataModelFactory forcing arbitrary transformer configuration
- Closed
-
MAGNOLIA-3213 MagnoliaTemplatingUtilities do not support creation of cross site links
- Closed
- is causing
-
MGNLETK-60 replace usage of the Java 6 method String.isEmpty() with StringUtils.isEmpty()
- Closed
- is related to
-
MAGNOLIA-3204 aggregation state loses all information on forwards
- Closed
-
MGNLETK-21 in admin central the wrong templates are made available for a new page when accessing it in multi-site configuration from default domain
- Closed
-
MGNLETK-27 Multi site support and virtualURIMappings don't play nice together: can not resolve site definition
- Closed
- relates to
-
MAGNOLIA-6626 Generated links do not have always the same format
- Closed
-
MULTISITE-109 Incorrect i18n links with subsites
- Closed