Release · v2.14.4
Open masked documents in the same tab instead of a…
Open masked documents in the same tab instead of a new one
Details
Clicking a masked document link (CV, posters, presentations) opened the viewer in a new tab. Since the viewer already has a "Back" control and the browser back button works, a new tab just clutters the user with extra tabs. Navigate to the viewer in the same tab instead (via location.assign, which keeps a history entry), so both the viewer's "Back" link and the browser back button return to the page they came from. - openMaskableDbLink always navigates in the same tab (window.open removed). - maskDbAnchor strips target/rel from masked anchors so the native fallback also stays same-tab. The viewer's "Open ↗" link still opens the raw document in a new tab — that is the deliberate escape hatch when the inline preview can't render. Verified offline (desktop + mobile): clicking CV opens the viewer in the same tab (no new tab), and the browser back button returns to the main page with the hero intact; full link audit still clean. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Pn8V4h9YWbjYzdSrDiLiVL
Files changed (1)
| frontend/client/ts/core/db_assets.ts | +12 | −20 |