diff --git a/CHANGELOG.md b/CHANGELOG.md index 4c9eb2a7..2ee478ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.0.3] - 2025.07.12 +### Changed +- Photo is pinned to profile mode +### Fixed +- Deep link URLs (and other prod settings) +- Error in BVC begin view ## [Unreleased] ### Changed diff --git a/WORKER_ONLY_DATABASE_IMPLEMENTATION.md b/doc/WORKER_ONLY_DATABASE_IMPLEMENTATION.md similarity index 100% rename from WORKER_ONLY_DATABASE_IMPLEMENTATION.md rename to doc/WORKER_ONLY_DATABASE_IMPLEMENTATION.md diff --git a/src/router/index.ts b/src/router/index.ts index f83e817d..010972bf 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -1,6 +1,7 @@ import { createRouter, createWebHistory, + createMemoryHistory, RouteLocationNormalized, RouteRecordRaw, } from "vue-router"; @@ -281,9 +282,14 @@ const routes: Array = [ }, ]; -const initialPath = window.location.pathname; +const isElectron = window.location.protocol === "file:"; +const initialPath = isElectron + ? window.location.pathname.split("/dist-electron/www/")[1] || "/" + : window.location.pathname; -const history = createWebHistory("/"); // Add base path for web apps +const history = isElectron + ? createMemoryHistory() // Memory history for Electron + : createWebHistory("/"); // Add base path for web apps /** @type {*} */ const router = createRouter({