Search Results for

    Show / Hide Table of Contents
    View Source

    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 Source

    CreateRedirects(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;

    View Source

    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.

    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • CreateRedirects(IDictionary<(Int32 ContentId, String Culture), (Guid ContentKey, String OldRoute)>)
      • StoreOldRoute(IContent, Dictionary<(Int32 ContentId, String Culture), (Guid ContentKey, String OldRoute)>)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX