Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Sources/FoundationEssentials/URL/URL_Swift.swift
Original file line number Diff line number Diff line change
Expand Up @@ -864,7 +864,7 @@ internal final class _SwiftURL: Sendable, Hashable, Equatable {
/// `URL("/").deletingLastPathComponent == URL("/../")`
/// `URL("/../").standardized == URL("")`
#if FOUNDATION_FRAMEWORK
if URL.compatibility4 && path == "/" {
if URL.compatibility1 && path == "/" {
components.percentEncodedPath = "/../"
} else {
components.percentEncodedPath = newPath
Expand Down Expand Up @@ -915,7 +915,7 @@ internal final class _SwiftURL: Sendable, Hashable, Equatable {
/// `URL("/../").standardized == URL("")`
#if FOUNDATION_FRAMEWORK
guard isDecomposable else { return nil }
let newPath = if URL.compatibility4 && _parseInfo.path == "/../" {
let newPath = if URL.compatibility1 && _parseInfo.path == "/../" {
""
} else {
String(_parseInfo.path).removingDotSegments
Expand Down
Loading