We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 01aa0bd commit 1f08232Copy full SHA for 1f08232
1 file changed
LinkRouter/App/Http/Controllers/RedirectController.cs
@@ -45,7 +45,7 @@ public async Task<ActionResult> RedirectToExternalUrl(string path)
45
46
Console.WriteLine(path);
47
48
- var redirectRoute = Config.CompiledRoutes!.FirstOrDefault(x => x.CompiledPattern.IsMatch(path));
+ var redirectRoute = Config.CompiledRoutes?.FirstOrDefault(x => x.CompiledPattern.IsMatch(path));
49
50
if (redirectRoute == null)
51
{
0 commit comments