"Rename this block ID" not working in page preview, messes up frontmatter instead

Steps to reproduce

  1. Create note with the following content:
---
tags:
---

Text ^id

[[#^id]]
  1. Bring up a page preview for [[#^id]] and click on it to enter edit mode.
  2. Right click on ^id and select Rename this block ID…
  3. Attempt to rename to id2

Did you follow the troubleshooting guide? [Y/N]

Y

Expected result

Successful block ID rename, intact frontmatter.

Actual result

---
t^id2:
---

Text ^id

[[#^id2]]

Environment

SYSTEM INFO:
Obsidian version: v1.7.7
Installer version: v1.7.7
Operating system: Darwin Kernel Version 20.6.0: Thu Jul 6 22:12:47 PDT 2023; root:xnu-7195.141.49.702.12~1/RELEASE_X86_64 20.6.0
Login status: not logged in
Language: en
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: off
Plugins installed: 5
Plugins enabled: 0

RECOMMENDATIONS:
none

thanks

1 Like

will be fixed v1.8.1

2 Likes