Skip to content

Commit 36da1ed

Browse files
committed
fix
1 parent 5d40cc6 commit 36da1ed

File tree

1 file changed

+2
-2
lines changed
  • src/Elastic.Markdown/Helpers

1 file changed

+2
-2
lines changed

src/Elastic.Markdown/Helpers/Htmx.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ public static bool HasSameTopLevelGroup(string? pathPrefix, string currentUrl, s
2626
return false;
2727
var startIndex = pathPrefix?.Length ?? 0;
2828

29-
if (currentUrl.Length > startIndex)
29+
if (currentUrl.Length < startIndex)
3030
throw new InvalidUrlException("Current URL is not a valid URL", currentUrl, startIndex);
3131

32-
if (targetUrl.Length > startIndex)
32+
if (targetUrl.Length < startIndex)
3333
throw new InvalidUrlException("Target URL is not a valid URL", targetUrl, startIndex);
3434

3535
var currentSegments = GetSegments(currentUrl[startIndex..].Trim('/'));

0 commit comments

Comments
 (0)