mirror of
https://github.com/zvx-echo6/navi.git
synced 2026-05-20 22:54:42 +02:00
fix: route polyline visibility + login URL
B1: Add ResizeObserver to MapView.jsx to handle layout settling. The map canvas had 0 height at init because layout hadnt settled when the useEffect fired. ResizeObserver calls map.resize() on any container size change. B11: Use native outpost start URL for login initiation: /outpost.goauthentik.io/start?rd=%2F This properly triggers auth flow and redirects to / after login. Removed the Caddy /login handler that wasnt redirecting correctly.
This commit is contained in:
parent
77340a9fbc
commit
fe77c6d459
5 changed files with 11 additions and 4 deletions
|
|
@ -758,7 +758,7 @@ export default function PlaceDetail() {
|
|||
</button>
|
||||
) : (
|
||||
<button
|
||||
onClick={() => { window.location.href = '/login' }}
|
||||
onClick={() => { window.location.href = '/outpost.goauthentik.io/start?rd=%2F' }}
|
||||
className="flex items-center gap-1 px-2 py-1.5 rounded-lg text-xs"
|
||||
style={{ background: 'var(--accent-muted)', color: 'var(--accent)', border: '1px solid var(--border)' }}
|
||||
title="Log in to save places"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue