mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-22 17:01:43 +00:00
client/web: fix back button on devices with URL prefix
Move Header component inside Router so that links are relative to the router base URL. Updates tailscale/corp#14335 Signed-off-by: Will Norris <will@tailscale.com>
This commit is contained in:
parent
fb984c2b71
commit
60957e1077
@ -59,8 +59,8 @@ function WebClient({
|
|||||||
) : (
|
) : (
|
||||||
// Otherwise render the new web client.
|
// Otherwise render the new web client.
|
||||||
<>
|
<>
|
||||||
<Header node={data} auth={auth} newSession={newSession} />
|
|
||||||
<Router base={data.URLPrefix}>
|
<Router base={data.URLPrefix}>
|
||||||
|
<Header node={data} auth={auth} newSession={newSession} />
|
||||||
<Switch>
|
<Switch>
|
||||||
<Route path="/">
|
<Route path="/">
|
||||||
<HomeView
|
<HomeView
|
||||||
|
Loading…
x
Reference in New Issue
Block a user