diff --git a/Composite/Plugins/Routing/Pages/DefaultPageUrlProvider.cs b/Composite/Plugins/Routing/Pages/DefaultPageUrlProvider.cs index d2916b9882..1266d67202 100644 --- a/Composite/Plugins/Routing/Pages/DefaultPageUrlProvider.cs +++ b/Composite/Plugins/Routing/Pages/DefaultPageUrlProvider.cs @@ -145,6 +145,10 @@ private PageUrlData ParseInternalUrl(string relativeUrl, out UrlKind urlKind) } string pathInfo = decodedPath.Substring(closingBracketOffset + 1); + if (pathInfo.Length > 0 && pathInfo[0] != '/') + { + return null; + } bool isUnpublished = pathInfo.Contains(UrlMarker_Unpublished); if (isUnpublished)