Bug 426757 - Kirigami.PageRouter reloads already loaded routes
Summary: Kirigami.PageRouter reloads already loaded routes
Status: RESOLVED NOT A BUG
Alias: None
Product: frameworks-kirigami
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: 5.70.0
Platform: Debian unstable Linux
: NOR normal
Target Milestone: Not decided
Assignee: Marco Martin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-20 00:49 UTC by link2xt
Modified: 2025-10-12 09:25 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Example QML file to reproduce the bug (2.08 KB, text/vnd.qt.qml)
2020-09-20 00:49 UTC, link2xt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description link2xt 2020-09-20 00:49:46 UTC
Created attachment 131792 [details]
Example QML file to reproduce the bug

SUMMARY

When navigating from "foo/bar/baz" to "foo/bar/baz", Kirigami.PageRouter reloads page "bar".

STEPS TO REPRODUCE
1. Load attached example with "qmlscene example.qml"
2. Press button "foo". Route "foo/bar" loads.
3. Select second item in the list. Route "foo/bar/baz" loads, but item gets unselected.
4. Select second item in the list again. Route "foo/bar/baz" loads, item gets unselected again.

OBSERVED RESULT

Already loaded pages are reloaded.

EXPECTED RESULT

On step 3, the result should be the same as if .pushRoute("baz") was used. On step 4, nothing at all should happen.

SOFTWARE/OS VERSIONS

Qt version 5.14.2, Kirigami2 version 5.70.0, Debian sid
Comment 1 Jack Hill 2025-10-12 09:25:21 UTC
Closing because PageRouter was removed in this commit https://invent.kde.org/frameworks/kirigami/-/commit/966482bd1e0dacaca3d336251ae0985120241024