Skip to content

Commit 0e293c3

Browse files
committed
Fix rare bug for plugin preferences link
1 parent 08e28f3 commit 0e293c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

releases/glz_custom_fields/glz_custom_fields.js

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ $(function() {
144144
function toggle_type_link() {
145145
$("select#custom_set_type").parent().find('span').remove();
146146
if ( $.inArray($("select#custom_set_type :selected").attr("value"), [].concat(GLZ_CUSTOM_FIELDS.special_custom_types, ["multi-select", "custom-script"])) != -1 )
147-
$("select#custom_set_type").after("<span class=\"right\"><em><a href=\"http://"+window.location.host+"/textpattern?event=plugin_prefs.glz_custom_fields\">Configure glz_custom_fields</a></em></span>");
147+
$("select#custom_set_type").after("<span class=\"right\"><em><a href=\"http://"+window.location.host+window.location.pathname+"?event=plugin_prefs.glz_custom_fields\">Configure glz_custom_fields</a></em></span>");
148148
}
149149

150150
});

0 commit comments

Comments
 (0)