Skip to content

Instantly share code, notes, and snippets.

View drummerboy46's full-sized avatar

Martin drummerboy46

  • Lane, Clark & Peacock LLP
  • Winchester
View GitHub Profile
@drummerboy46
drummerboy46 / UrlRedirectsMigration.cs
Last active September 6, 2023 09:32
Umbraco 7 Migration of Url Redirects
using NPoco;
using Umbraco.Cms.Core.Models;
using Umbraco.Cms.Core.Persistence.Repositories;
using Umbraco.Cms.Core.Services;
using Umbraco.Cms.Infrastructure.Migrations;
using Umbraco.Cms.Infrastructure.Scoping;
namespace Lcp.Core.Features.Shared.UrlRedirectsMigration
{
public class UrlRedirectsMigration : MigrationBase
{
"vars": {
"@gray-darker": "lighten(#000, 13.5%)",
"@gray-dark": "lighten(#000, 20%)",
"@gray": "lighten(#000, 33.5%)",
"@gray-light": "lighten(#000, 46.7%)",
"@gray-lighter": "lighten(#000, 93.5%)",
"@brand-primary": "#428bca",
"@brand-success": "#5cb85c",
"@brand-info": "#5bc0de",