From b3d2b8c429ca840d7a1d09c83fa3e6426b0270cc Mon Sep 17 00:00:00 2001 From: kisenka Date: Mon, 13 Oct 2014 18:52:57 +0400 Subject: Replace internal index pages URLs from "/index.html" with "/" --- src/Formats/KotlinWebsiteFormatService.kt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/Formats/KotlinWebsiteFormatService.kt b/src/Formats/KotlinWebsiteFormatService.kt index 9fee14ff..8170b5a9 100644 --- a/src/Formats/KotlinWebsiteFormatService.kt +++ b/src/Formats/KotlinWebsiteFormatService.kt @@ -18,9 +18,11 @@ public class KotlinWebsiteFormatService(locationService: LocationService, } override fun formatLink(text: String, location: Location): String { - return "${text}" + val href = location.path.replace("\\", "/") + .replaceAfterLast(".", "html") + .replace("/index.html", "/"); + + return "${text}" } override fun formatLink(text: String, href: String): String { -- cgit