sulu / SuluArticleBundle

Bundle for managing localized content-rich entities like blog-posts in the Sulu content management system
MIT License
52 stars 77 forks source link

ArticleLinkProvider and Multiple Portals #674

Open Olivier127 opened 2 months ago

Olivier127 commented 2 months ago
Q A
Bug? yes
New Feature? no
SuluArticleBundle Version 2.5.3
Sulu Version 2.5.15

Actual Behavior

Using link content_type for an article use the wrong url portal.

Expected Behavior

ArticleLinkProvider must generate the right contextual url for an article.

Steps to Reproduce

This is my webspace configuration demo.txt

Create an article Create a link property on homepage and select the previous article Go to the http://127.0.0.1 the link of the article is http://sulu/ not http://127.0.0.1/

Possible Solutions

If you have already ideas how to solve the issue, add them here. (remove this section if not needed)

alexander-schranz commented 3 weeks ago

You have 2 portals with the same locale inside a locale should only be part of one portal not multiple, based on the locale the portal is detected and so a locale can not be part of 2 portals. Keep in mind portal are just developer sugar, to group different localized together and great own logic on top of it. They don't exist from a content manager point of view.