diff --git a/system/handlers/renderers/content/Link.cfc b/system/handlers/renderers/content/Link.cfc index 176bdcc4ca..609fd57cac 100644 --- a/system/handlers/renderers/content/Link.cfc +++ b/system/handlers/renderers/content/Link.cfc @@ -2,7 +2,6 @@ * @feature cms */ component { - public string function default( event, rc, prc, args={} ){ var linkId = args.data ?: ""; @@ -13,4 +12,7 @@ component { return ""; } + private string function dataExport( event, rc, prc, args={} ) { + return getLinkUrl( args.data ?: "" ); + } } \ No newline at end of file diff --git a/system/i18n/preside-objects/url_redirect_rule.properties b/system/i18n/preside-objects/url_redirect_rule.properties index d478a73fc4..a2682f60aa 100644 --- a/system/i18n/preside-objects/url_redirect_rule.properties +++ b/system/i18n/preside-objects/url_redirect_rule.properties @@ -20,4 +20,6 @@ field.redirect_type.title=Redirect type field.redirect_type.help=Whether the redirect is a permanent or temporary redirect. If in doubt, choose the default 'permanent' redirect. field.keep_query_string.title=Preserve URL parameters -field.keep_query_string.help=If true, any URL parameters found at the incoming URL will be added to the target URL. \ No newline at end of file +field.keep_query_string.help=If true, any URL parameters found at the incoming URL will be added to the target URL. + +field.redirect_to_url.title=Redirect to URL \ No newline at end of file diff --git a/system/preside-objects/url_redirect_rule.cfc b/system/preside-objects/url_redirect_rule.cfc index a6165fbf3f..73dc1b1770 100644 --- a/system/preside-objects/url_redirect_rule.cfc +++ b/system/preside-objects/url_redirect_rule.cfc @@ -2,7 +2,7 @@ * The URL Redirect rule object is used to store individual URL redirect rules. These rules * can use regex, etc. and are used to setup dynamic and editorial redirects. * - * @dataExportFields id,label,source_url_pattern,redirect_type,exact_match_only,keep_query_string,redirect_to_link,datecreated,datemodified + * @dataExportFields id,label,source_url_pattern,redirect_type,exact_match_only,keep_query_string,redirect_to_link,redirect_to_url,datecreated,datemodified * @datamanagerEnabled true * @feature urlRedirects */ @@ -15,4 +15,5 @@ component extends="preside.system.base.SystemPresideObject" displayName="URL Red property name="keep_query_string" type="boolean" dbtype="boolean" required=false default=false; property name="redirect_to_link" relationship="many-to-one" relatedto="link" required=true; + property name="redirect_to_url" type="string" formula="${prefix}redirect_to_link" adminRenderer="none" dataExportRenderer="Link" autofilter=false; } \ No newline at end of file