aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/Locations/Location.kt
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/main/kotlin/Locations/Location.kt')
-rw-r--r--core/src/main/kotlin/Locations/Location.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/kotlin/Locations/Location.kt b/core/src/main/kotlin/Locations/Location.kt
index ccefa6e3..63c9b913 100644
--- a/core/src/main/kotlin/Locations/Location.kt
+++ b/core/src/main/kotlin/Locations/Location.kt
@@ -26,7 +26,7 @@ data class FileLocation(val file: File) : Location {
}
val ownerFolder = file.parentFile!!
val relativePath = ownerFolder.toPath().relativize(other.file.toPath()).toString().replace(File.separatorChar, '/')
- return if (anchor == null) relativePath else relativePath + "#" + anchor.urlEncoded()
+ return if (anchor == null) relativePath else "$relativePath#$anchor"
}
}