From e45b746f74ee8bafde7a64964ef2d9953e2f611f Mon Sep 17 00:00:00 2001 From: "Brett R. Toomey" Date: Fri, 7 Jul 2017 12:25:57 +0200 Subject: [PATCH] Update Active.swift --- Sources/AdminPanel/Support/LeafTags/Active.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Sources/AdminPanel/Support/LeafTags/Active.swift b/Sources/AdminPanel/Support/LeafTags/Active.swift index a3bae9f..1d45829 100644 --- a/Sources/AdminPanel/Support/LeafTags/Active.swift +++ b/Sources/AdminPanel/Support/LeafTags/Active.swift @@ -24,6 +24,10 @@ public class Active: BasicTag { if check.hasSuffix("*"), url.contains(check.replacingOccurrences(of: "*", with: "")) { return .string(key) } + + if check == url { + return .string(key) + } } return nil