This repository has been archived by the owner on Jun 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 61
/
UrlTrackerResources.cs
66 lines (63 loc) · 4.44 KB
/
UrlTrackerResources.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Web;
using umbraco;
namespace InfoCaster.Umbraco.UrlTracker
{
public static class UrlTrackerResources
{
public static string UrlTrackerManagerUrl
{
get
{
string urlTrackerManagerUrl = string.Format("~/umbraco/UrlTracker/InfoCaster.Umbraco.UrlTracker.UI.UrlTrackerManager.aspx?culture={0}&uiculture={1}", Thread.CurrentThread.CurrentCulture.ToString(), Thread.CurrentThread.CurrentUICulture.ToString());
return VirtualPathUtility.ToAbsolute(urlTrackerManagerUrl);
}
}
public static string UrlTrackerInfoUrl
{
get
{
string urlTrackerInfoUrl = string.Format("~/umbraco/UrlTracker/InfoCaster.Umbraco.UrlTracker.UI.UrlTrackerInfo.aspx?culture={0}&uiculture={1}", Thread.CurrentThread.CurrentCulture.ToString(), Thread.CurrentThread.CurrentUICulture.ToString());
return VirtualPathUtility.ToAbsolute(urlTrackerInfoUrl);
}
}
public const string RootNode = "Root node";
public const string RootNodeInfo = "The root node defines for which domain this redirect is meant";
public const string OldUrl = "Old URL";
public static readonly string OldUrlWatermark = string.Concat("/some/page", !GlobalSettings.UseDirectoryUrls ? ".aspx" : UmbracoSettings.AddTrailingSlash ? "/" : string.Empty);
public const string OldUrlInfo = "The URL path and query string, which you'd like to redirect";
public const string OldUrlTestInfo = "Click this link to test the redirect (opens in new window)";
public const string Regex = "<b>or</b> Regex";
public const string RegexStandalone = "Regex";
public const string RegexWatermark = "^index\\.php\\?id=([0-9]+)$";
public const string RegexInfo = "The input for Regex matching is the path AND query string, without leading slash.<br />(click to open RegExr)";
public const string OldUrlQueryString = "Old URL query string";
public const string OldUrlQueryStringWatermark = "id=1¶m=value";
public const string OldUrlQueryStringInfo = "The query string to match";
public const string RedirectNode = "Redirect node";
public const string RedirectNodeUnpublished = "The redirect node is unpublished";
public const string RedirectNodeInfo = "The node to redirect to";
public const string RedirectUrl = "<b>or</b> redirect URL (you can use capturing groups backreferences when using Regex; $1, $2 etc.)";
public const string RedirectUrlStandalone = "Redirect URL";
public static readonly string RedirectUrlWatermark = string.Concat("/some/page", !GlobalSettings.UseDirectoryUrls ? ".aspx" : UmbracoSettings.AddTrailingSlash ? "/" : string.Empty);
public const string RedirectUrlInfo = "The URL to redirect to (you can use capturing groups backreferences when using Regex; $1, $2 etc.)";
public const string RedirectType = "Redirect type";
public const string RedirectTypeInfo = "Permanent redirects will be cached by browsers and search engines will update old entries with the new URL";
public const string RedirectType301 = "Permanent (301)";
public const string RedirectType302 = "Temporary (302)";
public const string PassthroughQueryString = "Forward query string";
public const string PassthroughQueryStringInfo = "When enabled, the query string of the original request is forwarded to the redirect location (pass through)";
public const string PassthroughQueryStringLabel = "Yes";
public const string ForceRedirect = "Force redirect";
public const string ForceRedirectInfo = "When enabled, the UrlTracker will ALLWAYS redirect, even if a valid page exists at the specified Old URL";
public const string ForceRedirectLabel = "Yes";
public const string Notes = "Notes";
public const string NotesWatermark = "Notes";
public const string SyncTree = "Click to sync the tree on the left to this node";
public const string ErrorMessageOldUrlAndOldRegexEmpty = "There are entries without one of the two mandatory properties (OldUrl & OldRegex) set. Please delete the row(s) with the following Id('s): {0}";
public const string ErrorMessageOldUrlAndOldRegexEmptyButton = "Or click here to delete these rows automatically and reload the page";
}
}