diff --git a/koha-tmpl/intranet-tmpl/prog/js/datatables.js b/koha-tmpl/intranet-tmpl/prog/js/datatables.js
index d8cf30b90b..23959505ef 100644
--- a/koha-tmpl/intranet-tmpl/prog/js/datatables.js
+++ b/koha-tmpl/intranet-tmpl/prog/js/datatables.js
@@ -758,14 +758,17 @@ function _dt_buttons(params){
);
if ( table_settings && CAN_user_parameters_manage_column_config ) {
+ let href = '/cgi-bin/koha/admin/columns_settings.pl?module=%s&page=%s&table=%s'.format(table_settings.module, table_settings.page, table_settings.table);
buttons.push(
{
+ tag: "a",
+ attr: { href },
className: "dt_button_configure_table",
fade: 100,
titleAttr: __("Configure table"),
text: ' ' + __("Configure") + '',
action: function() {
- window.location = '/cgi-bin/koha/admin/columns_settings.pl?module=' + table_settings['module'] + '&page=' + table_settings['page'] + '&table=' + table_settings['table'];
+ window.location = href;
},
}
);