Skip to content

Commit c1fe888

Browse files
authored
Remove wrong prefix removing (#169)
1 parent b0bedb5 commit c1fe888

File tree

1 file changed

+1
-1
lines changed
  • src/jsMain/kotlin/app/softwork/routingcompose

1 file changed

+1
-1
lines changed

src/jsMain/kotlin/app/softwork/routingcompose/NavLink.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public fun NavLink(
2020
A(
2121
attrs = {
2222
attrs?.invoke(this)
23-
if (router.currentPath.path.startsWith(to.removePrefix("/"))) {
23+
if (router.currentPath.path.startsWith(to)) {
2424
classes("active")
2525
}
2626
onClick {

0 commit comments

Comments
 (0)