Starts in:
1 DAY
11 HRS
27 MIN
33 SEC
Starts in:
1 D
11 H
27 M
33 S

URL Forwarding System

CMS kit provides a URL forwarding system to create URLs that redirect to other pages or external websites.

Enabling

In addition to enabling Url Shorting global feature, you need to add UrlShortingMiddleware to your final application.

using Volo.CmsKit.Pro.Public.Web.Middlewares;
.
.
        public override void OnApplicationInitialization(ApplicationInitializationContext context)
        {
            var app = context.GetApplicationBuilder();

            app.UseMiddleware<UrlShortingMiddleware>();
            .
            .

User Interface

Menu Items

URL Forwarding: Opens the URL Forwarding management page.

Pages

URL Forwarding management page

You can create new forwardings or update/delete existing ones, in the admin side of your solution.

url-forwarding-page

Internals

Domain Layer

Aggregates

This module follows the Entity Best Practices & Conventions guide.

ShortenedUrl
  • ShortenedUrl (aggregate root): Represents a URL mapping in the system.

Repositories

This module follows the Repository Best Practices & Conventions guide.

Following custom repositories are defined for this feature:

  • IShortenedUrlRepository

Application layer

Application services

  • UrlShortingAdminAppService (implements IUrlShortingAdminAppService): Implements the use cases of URL Forwarding management.
  • UrlShortingPublicAppService (implements IUrlShortingPublicAppService): Implements the use cases of URL Forwarding for public websites.

Database providers

Common

Table / collection prefix & schema

All tables/collections use the Cms prefix by default. Set static properties on the CmsKitDbProperties class if you need to change the table prefix or set a schema name (if supported by your database provider).

Connection string

This module uses CmsKit for the connection string name. If you don't define a connection string with this name, it fallbacks to the Default connection string.

See the connection strings documentation for details.

Entity Framework Core

Tables
  • CmsShortenedUrls

MongoDB

Collections
  • CmsShortenedUrls

Contributors


Last updated: July 20, 2022 Edit this page on GitHub

Was this page helpful?

Please make a selection.

To help us improve, please share your reason for the negative feedback in the field below.

Please enter a note.

Thank you for your valuable feedback!

Please note that although we cannot respond to feedback, our team will use your comments to improve the experience.

In this document
Community Talks

What’s New with .NET 9 & ABP 9?

21 Nov, 17:00
Online
Watch the Event
Mastering ABP Framework Book
Mastering ABP Framework

This book will help you gain a complete understanding of the framework and modern web application development techniques.

Learn More