mirror of
https://github.com/samsonjs/vibetunnel.git
synced 2026-03-25 09:25:50 +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? {
|
||||
let serverManager = ServerManager.shared
|
||||
if let sessionId {
|
||||
return serverManager.buildURL(
|
||||
endpoint: "/",
|
||||
queryItems: [URLQueryItem(name: "session", value: sessionId)]
|
||||
)
|
||||
// Use path-based URL format: /session/sessionId
|
||||
return serverManager.buildURL(endpoint: "/session/\(sessionId)")
|
||||
} else {
|
||||
return serverManager.buildURL(endpoint: "/")
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue