We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b14cde commit 1a9b67cCopy full SHA for 1a9b67c
ios/Capacitor/Capacitor/Router.swift
@@ -17,7 +17,7 @@ public struct CapacitorRouter: Router {
17
public init() {}
18
public var basePath: String = ""
19
public func route(for path: String) -> String {
20
- let pathUrl = URL(fileURLWithPath: path)
+ let pathUrl = URL(fileURLWithPath: basePath + path)
21
22
// If there's no path extension it also means the path is empty or a SPA route
23
if pathUrl.pathExtension.isEmpty {
0 commit comments