Skip to content
This repository was archived by the owner on Apr 20, 2024. It is now read-only.

Commit e45b746

Browse files
authored
Update Active.swift
1 parent 803d94d commit e45b746

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/AdminPanel/Support/LeafTags/Active.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ public class Active: BasicTag {
2424
if check.hasSuffix("*"), url.contains(check.replacingOccurrences(of: "*", with: "")) {
2525
return .string(key)
2626
}
27+
28+
if check == url {
29+
return .string(key)
30+
}
2731
}
2832

2933
return nil

0 commit comments

Comments
 (0)