show collection name in the page title on initial load

This commit is contained in:
Gani Georgiev
2026-04-19 12:29:45 +03:00
parent 7b92b7c857
commit 61ce760e0f
4 changed files with 8 additions and 5 deletions

View File

@@ -58,6 +58,8 @@ export function pageCollections(route) {
watch(
() => (app.store.activeCollection?.name || "") + (app.store.activeCollection?.updated || ""),
(newVal, oldVal) => {
app.store.title = app.store.activeCollection?.name || "Collections";
// skip unnecessery initial params replacement
if (!oldVal) {
return;
@@ -69,8 +71,6 @@ export function pageCollections(route) {
pageData.sort = "";
}
app.store.title = app.store.activeCollection?.name || "Collections";
app.utils.replaceHashQueryParams({
[COLLECTION_QUERY_KEY]: app.store.activeCollection?.name,
[FILTER_QUERY_KEY]: pageData.filter || null,