@@ -50,7 +50,7 @@ public static async Task<IEnumerable<UrlInfo>> GetContentUrlsAsync(
5050
5151 if ( content . Published == false )
5252 {
53- result . Add ( UrlInfo . AsMessage ( textService . Localize ( "content" , "itemNotPublished" ) ) ) ;
53+ result . Add ( UrlInfo . AsMessage ( textService . Localize ( "content" , "itemNotPublished" ) , Constants . UrlProviders . Default ) ) ;
5454 return result ;
5555 }
5656
@@ -155,7 +155,7 @@ private static async Task<IEnumerable<UrlInfo>> GetContentUrlsByCultureAsync(
155155
156156 // deal with exceptions
157157 case "#ex" :
158- result . Add ( UrlInfo . AsMessage ( textService . Localize ( "content" , "getUrlException" ) , culture ) ) ;
158+ result . Add ( UrlInfo . AsMessage ( textService . Localize ( "content" , "getUrlException" ) , Constants . UrlProviders . Default , culture ) ) ;
159159 break ;
160160
161161 // got a URL, deal with collisions, add URL
@@ -168,7 +168,7 @@ private static async Task<IEnumerable<UrlInfo>> GetContentUrlsByCultureAsync(
168168 }
169169 else
170170 {
171- result . Add ( UrlInfo . AsUrl ( url , culture ) ) ;
171+ result . Add ( UrlInfo . AsUrl ( url , Constants . UrlProviders . Default , culture ) ) ;
172172 }
173173
174174 break ;
@@ -193,18 +193,19 @@ private static UrlInfo HandleCouldNotGetUrl(IContent content, string culture, IC
193193 if ( parent == null )
194194 {
195195 // oops, internal error
196- return UrlInfo . AsMessage ( textService . Localize ( "content" , "parentNotPublishedAnomaly" ) , culture ) ;
196+ return UrlInfo . AsMessage ( textService . Localize ( "content" , "parentNotPublishedAnomaly" ) , Constants . UrlProviders . Default , culture ) ;
197197 }
198198
199199 if ( ! parent . Published )
200200 {
201201 // totally not published
202- return UrlInfo . AsMessage ( textService . Localize ( "content" , "parentNotPublished" , new [ ] { parent . Name } ) , culture ) ;
202+ return UrlInfo . AsMessage ( textService . Localize ( "content" , "parentNotPublished" , new [ ] { parent . Name } ) , Constants . UrlProviders . Default , culture ) ;
203203 }
204204
205205 // culture not published
206206 return UrlInfo . AsMessage (
207207 textService . Localize ( "content" , "parentCultureNotPublished" , new [ ] { parent . Name } ) ,
208+ Constants . UrlProviders . Default ,
208209 culture ) ;
209210 }
210211
@@ -242,7 +243,7 @@ private static UrlInfo HandleCouldNotGetUrl(IContent content, string culture, IC
242243 logger . LogDebug ( logMsg , url , uri , culture ) ;
243244 }
244245
245- var urlInfo = UrlInfo . AsMessage ( textService . Localize ( "content" , "routeErrorCannotRoute" ) , culture ) ;
246+ var urlInfo = UrlInfo . AsMessage ( textService . Localize ( "content" , "routeErrorCannotRoute" ) , Constants . UrlProviders . Default , culture ) ;
246247 return Attempt . Succeed ( urlInfo ) ;
247248 }
248249
@@ -264,7 +265,7 @@ private static UrlInfo HandleCouldNotGetUrl(IContent content, string culture, IC
264265 l . Reverse ( ) ;
265266 var s = "/" + string . Join ( "/" , l ) + " (id=" + pcr . PublishedContent ? . Id + ")" ;
266267
267- var urlInfo = UrlInfo . AsMessage ( textService . Localize ( "content" , "routeError" , new [ ] { s } ) , culture ) ;
268+ var urlInfo = UrlInfo . AsMessage ( textService . Localize ( "content" , "routeError" , new [ ] { s } ) , Constants . UrlProviders . Default , culture ) ;
268269 return Attempt . Succeed ( urlInfo ) ;
269270 }
270271
0 commit comments