Closed bernhardreiter closed 8 months ago
When opening an url to a document and then switching to rolie feed view and back, the document should still be preserved.
Should be asily achievable. https://github.com/csaf-poc/csaf_webview/commit/62222652afe5229adb9094def4f656409a4f9998 is a first step in this direction.
Including the collapsible state.
We should evaluate the complexity of this in team.
With Commit https://github.com/csaf-poc/csaf_webview/commit/5579e33805cc54dd1f2569fe733b1ca392033fb0 the state which single document and which feed were open in parallel is encoded in the URL.
Basically there are three query params:
q
is always the query for either the feed or the single document
doc
is used in the context of the feed view to refer to a single document
feed
is used in the context of single documents to refer to a feed
Example for such an URLs:
http://localhost:5173/?q=http://localhost:8443/.well-known/csaf/white/2021/rhsa-2021_5217.json&feed=http://localhost:8443/.well-known/csaf/provider-metadata.json
?q=http://localhost:8443/.well-known/csaf/white/2021/rhsa-2021_5217.json
has the URL for the document to be shown
feed=http://localhost:8443/.well-known/csaf/provider-metadata.json
refers to the feed.
Combinations are possible:
http://localhost:5173/?feed=http://localhost:8443/.well-known/csaf/provider-metadata.json
shows no single document but refers to a feed.
In general it is nice if the last url ist kept, e.g. as part of the url so it could be bookmarked.
This requirement should be met.
When opening an url to a document and then switching to rolie feed view and back, the document should still be preserved. Including the collapsible state.
In general it is nice if the last url ist kept, e.g. as part of the url so it could be bookmarked.