Skip to content

fix: preserve mode parameter in createFullURL for proper view mode navigation (#34648)#34652

Merged
zJaaal merged 1 commit intomainfrom
34648-defect-uve-createfullurl-function-removes-mode-parameter-breaking-view-mode-navigation
Feb 13, 2026
Merged

fix: preserve mode parameter in createFullURL for proper view mode navigation (#34648)#34652
zJaaal merged 1 commit intomainfrom
34648-defect-uve-createfullurl-function-removes-mode-parameter-breaking-view-mode-navigation

Conversation

@zJaaal
Copy link
Contributor

@zJaaal zJaaal commented Feb 13, 2026

Summary

Fixes the createFullURL function in UVE which was incorrectly removing the mode parameter, preventing users from maintaining their current viewing mode (LIVE/PREVIEW_MODE/EDIT_MODE) when navigating or using buttons that rely on this URL.

Changes

  • Removed mode deletion: The createFullURL function now preserves the mode parameter instead of deleting it
  • Updated test: Modified test expectation to include the mode parameter in the generated URL

Why this matters

The createFullURL function is intended to create a "CurrentViewURL" that preserves the user's current viewing context. By removing the mode parameter, users lost the ability to maintain their view mode when:

  • Using navigation buttons in UVE
  • Accessing page URLs generated by this function
  • Switching between different view modes

Test plan

  • Removed delete paramsCopy?.mode; line from createFullURL function
  • Updated unit test to verify mode parameter is preserved in URL
  • Unit test passes with mode parameter included
  • Manual testing: Verify view mode is preserved when navigating in UVE
  • Manual testing: Verify LIVE/PREVIEW_MODE/EDIT_MODE buttons work correctly

Related Issue

Fixes #34648

🤖 Generated with Claude Code

This PR fixes: #34648

…vigation (#34648)

The createFullURL function was incorrectly removing the mode parameter,
preventing users from maintaining their current viewing mode (LIVE/PREVIEW_MODE/EDIT_MODE)
when navigating in UVE. This fix preserves the mode parameter to ensure proper
navigation between different view modes.

- Removed deletion of mode parameter in createFullURL function
- Updated test to expect mode parameter in generated URL

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes UVE’s createFullURL helper so it preserves the mode query parameter, ensuring “Current View URL” navigation retains the user’s current viewing mode (LIVE / PREVIEW_MODE / EDIT_MODE).

Changes:

  • Stop deleting mode from the params used to build the full URL in createFullURL.
  • Update the unit test expectation to include mode=EDIT_MODE in the generated URL.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
core-web/libs/portlets/edit-ema/portlet/src/lib/utils/index.ts Preserves mode when generating the “current view” URL so view mode is retained across navigation.
core-web/libs/portlets/edit-ema/portlet/src/lib/utils/utils.spec.ts Updates createFullURL test to assert mode is present in the resulting URL.

@zJaaal zJaaal enabled auto-merge February 13, 2026 20:20
@zJaaal zJaaal added this pull request to the merge queue Feb 13, 2026
Merged via the queue into main with commit 74aaee1 Feb 13, 2026
25 checks passed
@zJaaal zJaaal deleted the 34648-defect-uve-createfullurl-function-removes-mode-parameter-breaking-view-mode-navigation branch February 13, 2026 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

[DEFECT] UVE createFullURL function removes mode parameter, breaking view mode navigation

3 participants