Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

docs(wiki): document the startup destination and the tab deep link

Maurice0a824cec84e2
diff --git a/wiki/Display-Settings.md b/wiki/Display-Settings.md
index f9b3540ca..e6ccd931c 100644
--- a/wiki/Display-Settings.md
+++ b/wiki/Display-Settings.md
@@ -8,10 +8,52 @@ The General tab (Settings → General) controls your locale preferences and a fe
Open the user menu in the top navigation bar, select **Settings**, and stay on the **General** tab — it is the tab the page opens on.
-The tab is split into two sections: **Language & region** (currency, language, temperature, distance, time format) and **Travel & map** (booking route labels, POI pills, blur booking codes).
+The tab is split into three sections: **Startup** (where opening TREK lands), **Language & region** (currency, language, temperature, distance, time format) and **Travel & map** (booking route labels, POI pills, blur booking codes).
> Color mode (Light / Dark / Auto) is **not** here — it lives on the **Appearance** tab. See [Appearance-Settings](Appearance-Settings).
+## Start page
+
+Where TREK goes when you open it — the app root (`/`), which is also what the installed PWA and any home-screen shortcut launch.
+
+| Option | Behaviour |
+|--------|-----------|
+| **Dashboard** (default) | The trip overview, exactly as before. |
+| **Active trip** | Straight into your active trip, skipping the dashboard. |
+
+Your **active trip** is the one running today; if none is, the next one starting; if you have only past trips, the most recent one. That is the same trip the dashboard features in its hero, so the two never disagree. Archived trips are never picked, and if you have no trip at all, TREK opens the dashboard as usual.
+
+The dashboard stays reachable at `/dashboard` — only the root redirects.
+
+## Start tab
+
+Shown once **Active trip** is selected: which tab of the trip planner to open on. Handy when you mostly reach for one thing on the road, for example entering expenses on the Costs tab.
+
+If the tab you picked belongs to an addon that is switched off, the trip opens on **Plan** instead.
+
+### Linking to a tab directly
+
+Any trip URL accepts a `tab` parameter, which is what the start-tab setting uses internally. It works for bookmarks, home-screen shortcuts and wrapper apps too:
+
+```
+/trips/42?tab=finanzplan
+```
+
+The parameter takes the planner's internal tab ids, which are historic German names:
+
+| Tab | Id |
+|-----|-----|
+| Plan | `plan` |
+| Transport | `transports` |
+| Bookings | `buchungen` |
+| Lists | `listen` |
+| Costs | `finanzplan` |
+| Files | `dateien` |
+| Collab | `collab` |
+| A trip-page plugin | `plugin:<plugin-id>` |
+
+The parameter is consumed on arrival and disappears from the address bar; switching tabs afterwards works normally, and a reload keeps whatever tab you were last on.
+
## Currency
Your **display currency** — the currency you want to *read* amounts in on the Costs tab (totals, the category chart, balances, settle-up). It is presentation only: it never changes what is stored, and two members of the same trip can read it in different currencies and both see correct balances.
diff --git a/wiki/FAQ.md b/wiki/FAQ.md
index d969c3fed..7d3888cae 100644
--- a/wiki/FAQ.md
+++ b/wiki/FAQ.md
@@ -40,3 +40,9 @@ Yes. An admin can disable open registration so that new accounts can only be cre
## Does TREK support single sign-on?
Yes, via OpenID Connect (OIDC). Compatible providers include Google, Authentik, Keycloak, and any standard OIDC-compliant IdP. Set `OIDC_ONLY=true` to disable password login entirely. See [OIDC SSO](OIDC-SSO).
+
+## Can TREK open straight on my trip instead of the dashboard?
+
+Yes. In Settings → General → **Startup**, set the start page to **Active trip** and pick the tab it should open on — Costs, for instance, if you mostly add expenses while travelling. Opening TREK (including the installed PWA or a home-screen shortcut) then goes there in one step instead of three.
+
+If you would rather build the shortcut yourself, or point a wrapper app at it, any trip URL takes a tab directly: `/trips/42?tab=finanzplan`. See [Display-Settings](Display-Settings) for the full list of tab ids.
diff --git a/wiki/Offline-Mode-and-PWA.md b/wiki/Offline-Mode-and-PWA.md
index 670576950..373458aad 100644
--- a/wiki/Offline-Mode-and-PWA.md
+++ b/wiki/Offline-Mode-and-PWA.md
@@ -18,6 +18,8 @@ TREK must be served over **HTTPS** — the install prompt does not appear on pla
Once installed, TREK launches in **standalone** mode (fullscreen, no browser UI) using the TREK icon.
+The installed app starts at the app root, so the **Start page** setting decides what you see when you tap the icon — the dashboard, or straight into your active trip on a tab of your choice. See [Display-Settings](Display-Settings).
+
## What works offline
TREK uses Workbox service-worker caching plus an IndexedDB database (Dexie) for structured trip data. The following content is available offline after the first sync:
diff --git a/wiki/User-Settings.md b/wiki/User-Settings.md
index 20c206e9d..ffb31b4bf 100644
--- a/wiki/User-Settings.md
+++ b/wiki/User-Settings.md
@@ -12,7 +12,7 @@ If your account requires MFA setup, TREK redirects you directly to the **Account
| Tab | Purpose | Shown when |
|-----|---------|------------|
-| General | Currency, language, temperature unit, distance unit, time format, booking route labels, map POI pills, and blur booking codes | Always |
+| General | Start page and start tab, currency, language, temperature unit, distance unit, time format, booking route labels, map POI pills, and blur booking codes | Always |
| Appearance | Color mode, color scheme / accent, readability (transparency, reduce motion, density, text size), and which widgets appear on your dashboard | Always |
| Map | Map provider (Leaflet, Mapbox GL, or MapLibre GL), tile presets, map style and Mapbox token, 3D buildings, high-quality mode | Always |
| Notifications | Email, webhook, ntfy, and in-app notification preferences | Always |
@@ -26,6 +26,11 @@ If your account requires MFA setup, TREK redirects you directly to the **Account
The General tab controls the following preferences, all saved immediately on change. See [Display-Settings](Display-Settings) for the detail.
+**Startup**
+
+- **Start page** — open TREK on the dashboard (the default) or straight in your active trip.
+- **Start tab** — which planner tab that trip opens on, e.g. Costs for entering expenses on the road.
+
**Language & region**
- **Currency** — your display currency; **Trip currency** (the default) shows each trip in its own. See [Currencies](Currencies).