umbraco / Umbraco-CMS

Umbraco is a free and open source .NET content management system helping you deliver delightful digital experiences.
https://umbraco.com
MIT License
4.43k stars 2.67k forks source link

URL picker will not work correctly when multiple culture is in use #15134

Open bielu opened 11 months ago

bielu commented 11 months ago

Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)

8-13

Bug summary

So URL picker is using current culture context when choosing content in picker. Issue is when we have multiple culture and we pick content which is not publish in current culture.

So I can see 2 option to solve issue: 1) Add culture picker to MultiUrl picker 2) make content finder which will find any published culture (which would be expensive and not great editor experience)

Specifics

No response

Steps to reproduce

1) Create site which vary by culture 2) create Multi Url Picker field 3) create at least 2 culture 4) create page in culture a, and create second page in culture b 5) from culture a try to link to page which is published only culture a.

Expected result / actual result

Expected result: Link works and directing to other culture if not available in current culture Actual Result: Link property returns null value as content is not published

github-actions[bot] commented 11 months ago

Hi there @bielu!

Firstly, a big thank you for raising this issue. Every piece of feedback we receive helps us to make Umbraco better.

We really appreciate your patience while we wait for our team to have a look at this but we wanted to let you know that we see this and share with you the plan for what comes next.

We wish we could work with everyone directly and assess your issue immediately but we're in the fortunate position of having lots of contributions to work with and only a few humans who are able to do it. We are making progress though and in the meantime, we will keep you in the loop and let you know when we have any questions.

Thanks, from your friendly Umbraco GitHub bot :robot: :slightly_smiling_face:

Migaroez commented 10 months ago

Hey @bielu

Thank you for bringing this use-case to our attention, this however does not seem to be a bug but a possible lack in functionality.

In general you can use the language fallback feature to make sure that if a piece of content is not filled in (including a page picked with a picker), that you use the value on the default language instead.

Since this feature is an all or nothing on the whole value, you can't set individual links to other cultures, so it might be a good idea to supply an option to select nodes from a different culture.

For this reason, I am going to change this ticket into a feature request.

bielu commented 10 months ago

@Migaroez the fallback will work only if it is in default language, so it does not address problem... :) best solution would be to add culture picker in url picker.

TheBekker commented 6 months ago

+1 on this. This also makes it impossible to link between language variations.

Lets say on "Page1 (en-us)" i wanna link to "Page1 (da-dk)", that is not possible.