Skip to content

<% current page %> dynamic variable resolves to zoomed block #8903

Closed

Description

@stdword

Search first

  • I searched and no similar issues were found

What Happened?

  1. <% current page %> dynamic variable resolves to zoomed block instead of page.
  2. Shift-click to that broken link leads to strange behaviour:

There is a bunch of issues related to <% current page %>, but non of them about wrong resolving, except of scrolling through journals(#7196).

Demo

Reproduce the Bug

  1. Create a {{test}} macro with <% current page %> body:
  2. Use {{test}} macro in any page
  3. While you are at the page — everything works OK
  4. If you zoom to block with macro — it renders wrong (look at gif demo):
    • it renders to zoomed block uuid, not to a page name
    • even if it was feature and not a bug: this link is broken (used [[...]] instead of ((...)))

Expected Behavior

page zoomed block sidebar portal (embedded, linked references, etc.) journals
✅ [[page name]] 🚫 [[name of block's page]] ✅ [[page name]] ✅ [[page name]] 🚫 see issue #7196

As an idea: <% zoomed block %>

Dynamic var that always will resolve to:

page zoomed block sidebar portal (embedded, linked references, etc.) journals
[[page name]] ((zoomed block uuid)) [[page name]] OR ((zoomed block uuid)) [[page name]] OR ((zoomed block uuid)) [[page name]]

Screenshots

No response

Desktop or Mobile Platform Information

MacOS latest, Desktop Logseq v.0.8.18

Additional Context

No response

Are you willing to submit a PR? If you know how to fix the bug.

  • I'm willing to submit a PR (Thank you!)

Activity

  1. changed the title [-]`<% current page %>` dynamic variable resolves to non-clickable zoomed block[/-] [+]`<% current page %>` dynamic variable resolves to zoomed block[/+] on Mar 25, 2023
  2. added
    fixed-next-release ✅
    on Mar 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixed-next-release ✅

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions