mirror of
https://github.com/samsonjs/vibetunnel.git
synced 2026-04-27 15:17:38 +00:00
fix: Update Mac app to use path-based URLs for sessions
The Mac app was still using the old query parameter format (?session=id) while the web app expects path-based URLs (/session/id). This caused sessions not backed by windows to open with the wrong URL format. Updated DashboardURLBuilder to generate path-based URLs matching the web app's routing expectations.
This commit is contained in:
parent
e5a1bafd7c
commit
12ef75386c
1 changed files with 2 additions and 4 deletions
|
|
@ -14,10 +14,8 @@ enum DashboardURLBuilder {
|
||||||
static func dashboardURL(port: String, sessionId: String? = nil) -> URL? {
|
static func dashboardURL(port: String, sessionId: String? = nil) -> URL? {
|
||||||
let serverManager = ServerManager.shared
|
let serverManager = ServerManager.shared
|
||||||
if let sessionId {
|
if let sessionId {
|
||||||
return serverManager.buildURL(
|
// Use path-based URL format: /session/sessionId
|
||||||
endpoint: "/",
|
return serverManager.buildURL(endpoint: "/session/\(sessionId)")
|
||||||
queryItems: [URLQueryItem(name: "session", value: sessionId)]
|
|
||||||
)
|
|
||||||
} else {
|
} else {
|
||||||
return serverManager.buildURL(endpoint: "/")
|
return serverManager.buildURL(endpoint: "/")
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue