craftcms / craftcms/cms

Reordering a structure does not change the uri on globe icon

Open
#2,692 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug severity:minor
Dominant language
PHP
Stars
3.6k
Forks
705
Avg merge
1d 5h
Merged PRs (30d)
134

Description

Description

When dragging structure items around (making children or children's children) the uri's from the globe icon don't change.

Steps to reproduce
  1. Drag an item in a structure to the right so it becomes a child of the entry above
  2. Click the globe icon on the right
  3. Still goes to the old uri, not the new uri
Additional info
  • Craft version: Craft Pro 3.0.1
  • PHP version: 7.1.16
  • Database driver & version: MySQL 5.7.21

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue in the structure editor described in the report: drag an item to make it a child, then click the globe icon and compare the destination with the new hierarchy. Trace how the globe icon obtains the entry URI; done means it opens the updated URI after reordering.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
content
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.