-
For the top navigation bar I am using this configuration: .topNavigationBar(
// homeLink undefined, so use landing page
navLinks = Seq(
IconLink.internal(
Root / "api" / "index.html",
HeliumIcon.api,
options = Styles("svg-link")
),
IconLink.external(
browsableLink,
HeliumIcon.github,
options = Styles("svg-link")
)
) When I open the page locally I have the URL:
This is correct because the root is:
I would like however to retain the TIA |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The PrettyURLs bundle is different, it changes For the base case where targets which are already named |
Beta Was this translation helpful? Give feedback.
The PrettyURLs bundle is different, it changes
foo.html
intofoo/index.html
so that no link has any.html
extension.For the base case where targets which are already named
index.html
have the URLs trimmed there is no configuration option to toggle this behaviour (and unfortunately it's a bit too complicated to justify a new option for this & you are also the first to ever ask for this). Which means the remaining option is to customize the renderer forSpanLink
as described in https://typelevel.org/Laika/latest/04-customizing-laika/06-overriding-renderers.html