Interface IRedirectTracker
Determines and records redirects for a content item following an update that may change it's public URL.
Namespace: Umbraco.Cms.Core.Routing
Assembly: Umbraco.Core.dll
Syntax
public interface IRedirectTracker
Methods
View SourceCreateRedirects(IDictionary<(Int32 ContentId, String Culture), (Guid ContentKey, String OldRoute)>)
Creates appropriate redirects for the content item following an update.
Declaration
void CreateRedirects(IDictionary<(int ContentId, string Culture), (Guid ContentKey, string OldRoute)> oldRoutes)
Parameters
Type | Name | Description |
---|---|---|
IDictionary<System.ValueTuple<System.Int32, System.String>, System.ValueTuple<Guid, System.String>> | oldRoutes | The populated dictionary of old routes; |
StoreOldRoute(IContent, Dictionary<(Int32 ContentId, String Culture), (Guid ContentKey, String OldRoute)>)
Stores the existing routes for a content item before update.
Declaration
void StoreOldRoute(IContent entity, Dictionary<(int ContentId, string Culture), (Guid ContentKey, string OldRoute)> oldRoutes)
Parameters
Type | Name | Description |
---|---|---|
IContent | entity | The content entity updated. |
Umbraco.Cms.Core.Dictionary<System.ValueTuple<System.Int32, System.String>, System.ValueTuple<Guid, System.String>> | oldRoutes | The dictionary of routes for population. |