Added a check that we have a route before attempting to include it in the other URLs for a published document. (#18135)

This commit is contained in:
Andy Butland
2025-01-28 10:10:08 +01:00
committed by nikolajlauridsen
parent af662fe0e1
commit 28019e47a9

View File

@@ -117,7 +117,7 @@ public class NewDefaultUrlProvider : IUrlProvider
// although we are passing in culture here, if any node in this path is invariant, it ignores the culture anyways so this is ok
var route = GetLegacyRouteFormatById(key, culture);
if (route == null)
if (route == null || route == "#")
{
continue;
}