我有这个代码:
protected override IEnumerable<ShortcutUrlResolver> GetShortcutUrlResolvers() {
return new[]
{
new ShortcutUrlResolver( "someShortcut", ConnectionSecurity.SecureIfPossible, () => SmartRedirector.GetInfo( Pages.One.Two.GetInfo().GetUrl() ) ),
new ShortcutUrlResolver( "", ConnectionSecurity.SecureIfPossible, () => Pages.Portals.GetInfo() )
};
}
如果我去mysite/
,我最终会在 Portals 页面(上面的第二个快捷方式)。如果我去 mysite/someShortcut,我会得到一个错误:
this page is no longer available .