Text/URL field auto-populated with unexpected value in Compact Edit (New Edit Content UI)
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 970
- Forks
- 486
- Avg merge
- 3d 33m
- Merged PRs (30d)
- 170
Description
Problem Statement
When a content type containing a Text field (used as a URL/CTA link) is added to a page and
opened via Compact Edit mode (inline editing from the page editor), the Text field is
automatically pre-populated with an unexpected/random URL value — before the user makes any
changes. If the content is saved in this state, the bad value is persisted, overwriting the
intended URL.
The same content opened in Full Editor mode shows the field correctly as empty or with
the correct saved value.
Steps to Reproduce
https://drive.google.com/file/d/1F1etBH100t00-N5pnx3wZCRgVUT-4u76/view?usp=drive_link
Steps to Reproduce
- Create a new Content Type with a Text field (variable name:
url) - Create a contentlet of that type — leave the
urlfield empty - Add a Container using that Content Type to a Page
- Open the Page in the Page Editor
- Hover over the contentlet and click the inline edit (pencil) icon to open Compact Edit mode
- Before making any changes, observe the
urlText field
Acceptance Criteria
Expected Behavior
The url field should be empty (or show the previously saved value).
Actual Behavior
The url field is pre-populated with an unexpected URL value (appears to be the current
page URL, admin URL, or browser origin). If saved, this value is persisted on the contentlet.
dotCMS Version
26.04.28-02
Severity
Medium - Some functionality impacted
Links
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Compact Edit or New Edit Content UI entry point and reproduce the issue using a content type with an empty url Text field. Compare the field initialization in Compact Edit with Full Editor, then verify that opening and saving without changes preserves an empty or previously saved value rather than a page or browser URL.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100