logseq / logseq/logseq

Problem with returning to previous page position

Open
#12,269 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Clojure
Stars
45k
Forks
2.8k
Avg merge
1d 22h
Merged PRs (30d)
105

Description

### Search first

- [x] I searched and no similar issues were found

### What Happened?

If the page name is written in the middle of the page inside [[ ]] and you click on it, the linked page opens. However, when you click Back button (the left arrow ←), it returns to the previous page but jumps to the very top of the page. This is very inconvenient, because each time you have to scroll back to the exact place where you clicked before.

See youtube video, that shows the problem:
https://youtu.be/QdQ4DJynlIM

### Reproduce the Bug

**Steps to reproduce:**

1. Open a page that contains a link to another page written in the middle of the content using [[Page Name]].
2. Scroll down to that link.
3. Click the page name inside [[ ]] to open the linked page.
4. Click the Back button (left arrow ←) in the app or browser.

**Actual result:**

The app returns to the previous page but scrolls to the very top of the page instead of the original position.

### Expected Behavior

The app should return to the exact scroll position where the link was clicked.

### Screenshots

See youtube video, that shows the problem:
https://youtu.be/QdQ4DJynlIM

### Desktop or Mobile Platform Information

All Desktop or Mobile Platforms

### 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!)

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 using the listed steps: open a linked page from a scrolled position, then use the app or browser Back button. Trace the navigation and scroll restoration behavior across desktop and mobile platforms; done means returning to the exact link position without disrupting normal Back navigation.

Written by the indexing model from the issue text.

Assessment

Tech stack
clojure
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.