Table of Contents

GetAppUrl Method

Definition

Namespace
Cuemon.Extensions.AspNetCore.Mvc.RazorPages
Assemblies
Cuemon.Extensions.AspNetCore.Mvc.RazorPages.dll
Source
src/Cuemon.Extensions.AspNetCore.Mvc.RazorPages/PageBaseExtensions.cs

GetAppUrl(PageBase, string)

Gets the fully qualified URL for a static resource of your application.

public static string GetAppUrl(this PageBase pageModel, string src)

Parameters

pageModel PageBase

The PageBase to extend.

src string

The relative source of the static resource.

Returns

string

A concatenated string of the formatted base URL from AppTagHelperOptions and the specified src.