// Remove basepage as it can be changed on some CMS eg. WordPress frontend.
frag[0] = frag[0].replace('civicrm/', '/');
// Encode url path only if slashes in placeholder were also encoded
- if (tplURL[mode].indexOf('/placeholder-url-path') >= 0) {
- url = tplURL[mode].replace('/placeholder-url-path', frag[0]);
+ if (tplURL[mode].indexOf('/crmajax-placeholder-url-path') >= 0) {
+ url = tplURL[mode].replace('/crmajax-placeholder-url-path', frag[0]);
} else {
- url = tplURL[mode].replace('%2Fplaceholder-url-path', encodeURIComponent(frag[0]));
+ url = tplURL[mode].replace('%2Fcrmajax-placeholder-url-path', encodeURIComponent(frag[0]));
}
if (_.isEmpty(query)) {
CRM.config.entityRef = $.extend({ldelim}{rdelim}, {$entityRef|@json_encode}, CRM.config.entityRef || {ldelim}{rdelim});
// Initialize CRM.url and CRM.formatMoney
- CRM.url({ldelim}back: '{crmURL p="civicrm/placeholder-url-path" q="civicrm-placeholder-url-query=1" h=0 fb=1}', front: '{crmURL p="civicrm/placeholder-url-path" q="civicrm-placeholder-url-query=1" h=0 fe=1}'{rdelim});
+ CRM.url({ldelim}back: '{crmURL p="civicrm/crmajax-placeholder-url-path" q="civicrm-placeholder-url-query=1" h=0 fb=1}', front: '{crmURL p="civicrm/crmajax-placeholder-url-path" q="civicrm-placeholder-url-query=1" h=0 fe=1}'{rdelim});
CRM.formatMoney('init', false, {$moneyFormat|@json_encode});
// Localize select2
$provide.value('crmNavigator', navigator);
});
inject(['crmLegacy', function(crmLegacy) {
- crmLegacy.url({back: '/civicrm/placeholder-url-path?civicrm-placeholder-url-query=1', front: '/civicrm/placeholder-url-path?civicrm-placeholder-url-query=1'});
+ crmLegacy.url({back: '/civicrm/crmajax-placeholder-url-path?civicrm-placeholder-url-query=1', front: '/civicrm/crmajax-placeholder-url-path?civicrm-placeholder-url-query=1'});
}]);
inject(['$controller', function($controller) {
ctrl = $controller('ListMailingsCtrl', {});