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 dca8187 commit 30b2ce1Copy full SHA for 30b2ce1
Sources/UnidocServer/Server/AnyOperation.swift
@@ -57,8 +57,12 @@ extension AnyOperation
57
let asset:Site.Asset? = .init(rawValue: trunk)
58
return asset.map { .datafile(.init($0, tag: tag)) }
59
60
- case "sitemap":
61
- return .database(SiteMapOperation.init(package: .init(trunk), uri: uri, tag: tag))
+ case "sitemaps":
+ // Ignore file extension.
62
+ return .database(SiteMapOperation.init(
63
+ package: .init(trunk.prefix { $0 != "." }),
64
+ uri: uri,
65
+ tag: tag))
66
67
case "reference":
68
return .get(legacy: trunk, stem: stem, uri: uri)
0 commit comments