kiwix/kiwix-desktop

TOC navigations should be recorded in history

Open

#1,248 opened on Nov 13, 2024

 (7 comments) (0 reactions) (1 assignee)C++ (174 forks)auto 404
enhancementgood first issue

Repository metrics

Stars
 (1,391 stars)
PR merge metrics
 (PR metrics pending)

Description

Currently, the TOC #42 navigations do not go through the Qt system and use Javascript to scroll directly. It would be great to have an in-page history, where the history records those actions but sends them to Javascript for scrolling instead of refreshing the current page to the URL.

Note that if a page is refreshed, all DOM states are also reset, which is not what we want. This is the reason why we cannot use setUr to navigate to TOC entries.

Contributor guide