Describe the bug
When I open a Reitti memory directly, the tracks and photos load correctly.
When I open the same memory from an external link in Wiki.js, the memory page itself loads, but:
- route tracks are missing
- photos are blank
This happens even when the final URL in the browser is the same
To Reproduce
Reitti version
v3.4.1
Setup
- Reitti is hosted behind Cloudflare Access
- Wiki.js is on a separate site/app
- I am logged into Reitti in the browser
- Wiki.js contains a normal HTML link to the memory
Example link used in Wiki.js:
<a href="https://reitti.xxxxxxxx.dk/memories/3?timezone=Europe/Copenhagen" target="_blank" rel="noopener">
The Route
</a>
I also tested with a fresh magic link (?mt=...) generated from the Share dialog. Same result.
Steps to reproduce the behavior:
1 Create/open a memory that normally shows tracks and photos
2 Open the memory directly in the browser
3 Confirm tracks and photos appear
4 Put a normal link to the same memory into Wiki.js
5 Click the link from Wiki.js
6 Observe that the memory page opens, but tracks are missing and photos are blank
**Expected behavior**
The same memory should load the same tracks and photos regardless of whether it is opened directly or via an external link.
**Actual behavior**
Opening directly:
page opens
tracks load
photos load
Opening from Wiki.js:
page opens
tracks do not load
photos are blank
**Debugging details**
I compared the raw-location-points request in both cases.
The request URL is the same in both cases:
/api/v1/raw-location-points?startDate=2025-05-09T05:57:10&endDate=2025-05-09T18:21&timezone=Europe/Copenhagen&zoom=19
The referer is also the same in both cases:
https://reitti.xxxxxxxx.dk/memories/3?timezone=Europe/Copenhagen
But the responses differ:
Direct open
Response contains segments with points, for example:
{
"segments": [
{
"points": [...]
}
],
"latest": {...}
}
Opened from Wiki.js
Response contains no segments:
{
"segments": [],
"latest": {...}
}
I also checked cookies in DevTools:
the direct case sends JSESSIONID
the Wiki.js-opened raw-location-points request did not send JSESSIONID
in the Wiki.js-opened tab, JSESSIONID does exist in browser storage
This suggests the memory page is opened, but the follow-up requests for route/photo data are not using the same effective session/auth context when the navigation starts from Wiki.js.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Desktop (please complete the following information):**
- OS: MacOS Tahoo 26.2
- Browser chrome
- Version 145.0.7632.160
**Smartphone (please complete the following information):**
- N/A
**Additional context**
I also observed that when using a magic link with ?mt=...&timezone=Europe/Copenhagen, Reitti responds with a 302 redirect to:
/memories/3
So the initial parameters appear to be stripped by the redirect, but even after ending up on:
/memories/3?timezone=Europe/Copenhagen
the behavior still differs between direct open and opening from Wiki.js.
<img width="1047" height="543" alt="Image" src="https://github.com/user-attachments/assets/a563c07e-7cec-4cb3-9ccb-7b5a5c6629f1" />
<img width="1049" height="543" alt="Image" src="https://github.com/user-attachments/assets/38b19248-e9a4-4935-8013-875844c4f1ce" />
I can provide screenshots and full request/response headers if needed.
Describe the bug
When I open a Reitti memory directly, the tracks and photos load correctly.
When I open the same memory from an external link in Wiki.js, the memory page itself loads, but:
This happens even when the final URL in the browser is the same
To Reproduce
Reitti version
v3.4.1
Setup
Example link used in Wiki.js: