Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion system/handlers/renderers/content/Link.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
* @feature cms
*/
component {

public string function default( event, rc, prc, args={} ){
var linkId = args.data ?: "";

Expand All @@ -13,4 +12,7 @@ component {
return "";
}

private string function dataExport( event, rc, prc, args={} ) {
return getLinkUrl( args.data ?: "" );
}
}
4 changes: 3 additions & 1 deletion system/i18n/preside-objects/url_redirect_rule.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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.
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
3 changes: 2 additions & 1 deletion system/preside-objects/url_redirect_rule.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand All @@ -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;
}