Skip to content

Commit f1e69dd

Browse files
authoredJan 28, 2025··
Added a check that we have a route before attempting to include it in the other URLs for a published document. (#18135)
1 parent ea63d08 commit f1e69dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/Umbraco.Core/Routing/NewDefaultUrlProvider.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public virtual IEnumerable<UrlInfo> GetOtherUrls(int id, Uri current)
117117

118118
// although we are passing in culture here, if any node in this path is invariant, it ignores the culture anyways so this is ok
119119
var route = GetLegacyRouteFormatById(key, culture);
120-
if (route == null)
120+
if (route == null || route == "#")
121121
{
122122
continue;
123123
}

0 commit comments

Comments
 (0)
Please sign in to comment.