dotCMS / core

Headless/Hybrid Content Management System for Enterprises
http://dotcms.com
Other
865 stars 466 forks source link

UVE: Page content is deleted when change language #29572

Closed KevinDavilaDotCMS closed 1 month ago

KevinDavilaDotCMS commented 2 months ago

Task

When we change the language we should see an empty page if we create a translation otherwise we should see the translated page.

VTL:

https://github.com/user-attachments/assets/f7bc7cb3-a6cf-428b-9783-ba116aff75d8

Headless:

https://github.com/user-attachments/assets/3ca37393-ed7c-4255-a8f5-df11b242a2ff

Proposed Objective

User Experience

Proposed Priority

Priority 2 - Important

Acceptance Criteria

We should be able to see the page when we change the language or translate if the page does not exist.

valentinogiardino commented 2 months ago

IQA Passed Internal

https://github.com/user-attachments/assets/882e94d8-1612-4610-9db5-22dd2b7f0618

VTL

https://github.com/user-attachments/assets/71dedf5f-8701-46e8-8321-8397fc2bfc67

bryanboza commented 2 months ago

We need some work here:

After test in the latest trunk image generated [trunk_e622545], I'm getting this behavior which is weir and need some work

https://github.com/user-attachments/assets/2a868e8a-8a3b-48ec-b427-ab4fd25806e5

FYI: This behavior occurs only when you try to create a new version from the pages portlet, not from the site browser.

bryanboza commented 2 months ago

Note to QA again this card:

We recommend retest the whole functionality in the regular page editor and also using the UVE editor in both technologies (NextJS and Angular)

dcolina commented 1 month ago

Internal QA: Passed.

The following use case is out of scope of the ticket, so it will be resolved in another card.

When creating a new version of a page in Spanish from an existing English page, and then attempting to swap back from the new Spanish version to the original English version, an unusual error message appears: "This URL does not exist (The page you are trying to access does not exist)." However, when re-entering the edit mode, the error does not reappear, indicating an inconsistent behavior in the flow.

https://github.com/user-attachments/assets/1f4b99d9-2d84-4c15-8aaa-aed18ffae8d5

josemejias11 commented 1 month ago

Approved: Tested on trunk_4a9aadf, Docker, macOS 14.5, FF v126.0.1