Trying to edit an exposed code component's code immediately after creating a new code component keeps navigating to the newly edited code component's editor route.

Steps to reproduce:

  1. Make sure you have at least one exposed code component. (Note: Exposed code components are the ones added to Components in the Library — exposed for content editors for using in content.)
  2. Create a new code component. Make at least one change to the new code component's code
  3. Use the contextual menu for an exposed code component, choose Edit code.
  4. Notice that the UI navigates back to editing the code of your new code component.
  5. You can even edit the code of another internal (not yet exposed) component, then do #3, and still run into the problem.

The problem only goes away when you refresh the page or exit the code editor by clicking the component's name in the header.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

balintbrews created an issue. See original summary.

bnjmnm made their first commit to this issue’s fork.

bnjmnm’s picture

Status: Active » Needs review
bnjmnm’s picture

Issue summary: View changes
bnjmnm’s picture

Assigned: balintbrews » Unassigned
bnjmnm’s picture

Status: Needs review » Needs work

Current MR does not allow creating multiple components, will get that fixed

bnjmnm’s picture

Status: Needs work » Needs review

Fixed the multiple-add issue, back to MR

hooroomoo’s picture

  • hooroomoo committed dce044a2 on 1.x authored by bnjmnm
    Issue #3537843 by bnjmnm, ankithashetty, hooroomoo: Can't navigate to...
hooroomoo’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.