We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05b7473 commit b1828f4Copy full SHA for b1828f4
Sources/App/Controllers/PackageController+routes.swift
@@ -467,7 +467,9 @@ extension PackageController {
467
468
// Replace the reference with the "current" tilde character regardless of the incoming reference.
469
urlComponents[3] = "~"
470
- return Current.siteURL() + urlComponents.joined(by: "/")
+
471
+ @Dependency(\.environment) var environment
472
+ return environment.siteURL() + urlComponents.joined(by: "/")
473
}
474
475
0 commit comments