Skip to content

Commit 3905372

Browse files
committed
Prefix slash to path label in NotFoundCounter
1 parent 54acb2a commit 3905372

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LinkRouter/App/Http/Controllers/RedirectController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public IActionResult RedirectToExternalUrl(string path)
5151
}
5252

5353
NotFoundCounter
54-
.WithLabels(path)
54+
.WithLabels("/" + path)
5555
.Inc();
5656

5757
if (Config.NotFoundBehavior.RedirectOn404)

0 commit comments

Comments
 (0)