craftcms / craftcms/cms

[4.x]: Wrong path on preview globe icon after drag and drop entry to lower level

Open
#12,028 3 comments 0 reactions 1 assignee View on GitHub

@i-just is already working on this.

Since Oct 4, 2022.

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

Description

What happened?
Description

If you create a new entry at the top level and then drag and drop it to a lower level, the URL on the preview icon (globe) is not updated. Only after a reload is the path correct. Tested in Craft 3 and 4, see screenshot.

Steps to reproduce
  1. create new entry on top level
  2. drag and drop it on a lower level
  3. click globe icon
  4. path is wrong because parent elements missing

Bildschirmfoto 2022-09-29 um 17 06 18

Craft CMS version

4.2.5.1

PHP version

8.1

Operating system and version

macOS Monterey 12.6

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.