UrlHelper.IsLocalUrl Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

IsLocalUrl(string)

Returns a value that indicates whether the URL is local relative to the application.

public static bool IsLocalUrl(this string url)

Parameters

url
string

The URL to test.

Returns

bool

true if the specified URL references the specified host; otherwise, false.