aboutsummaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorDmitry Neverov <dmitry.neverov@gmail.com>2017-06-21 06:19:48 +0200
committerSimon Ogorodnik <sem-oro@yandex.ru>2017-07-06 15:13:19 +0300
commit85c02893823a81fa3dac967ab7413e48cd6d22b9 (patch)
tree2f0079140a2ea47d22b3f519cbe45a2c79b480c7 /core/src
parent53b5b0aef9ba3555b05556a0265739a4b8c38add (diff)
downloaddokka-85c02893823a81fa3dac967ab7413e48cd6d22b9.tar.gz
dokka-85c02893823a81fa3dac967ab7413e48cd6d22b9.tar.bz2
dokka-85c02893823a81fa3dac967ab7413e48cd6d22b9.zip
Fix link in the last breadcrumbs item
Diffstat (limited to 'core/src')
-rw-r--r--core/src/main/kotlin/Locations/LocationService.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/kotlin/Locations/LocationService.kt b/core/src/main/kotlin/Locations/LocationService.kt
index 39f5942c..a51ef8d4 100644
--- a/core/src/main/kotlin/Locations/LocationService.kt
+++ b/core/src/main/kotlin/Locations/LocationService.kt
@@ -24,7 +24,7 @@ data class FileLocation(val file: File): Location {
throw IllegalArgumentException("$other is not a FileLocation")
}
if (file.path.substringBeforeLast(".") == other.file.path.substringBeforeLast(".") && anchor == null) {
- return "."
+ return "./${file.name}"
}
val ownerFolder = file.parentFile!!
val relativePath = ownerFolder.toPath().relativize(other.file.toPath()).toString().replace(File.separatorChar, '/')