diff --git a/src/main/kotlin/nl/avisi/structurizr/site/generatr/site/RelativeUrl.kt b/src/main/kotlin/nl/avisi/structurizr/site/generatr/site/RelativeUrl.kt index 75d45f0f..cf091df5 100644 --- a/src/main/kotlin/nl/avisi/structurizr/site/generatr/site/RelativeUrl.kt +++ b/src/main/kotlin/nl/avisi/structurizr/site/generatr/site/RelativeUrl.kt @@ -8,4 +8,4 @@ fun String.asUrlToFile(relativeTo: String): String = if (relativeTo == this) "." else File(this) .relativeTo(File(relativeTo)) - .toString() + .invariantSeparatorsPath