Abuse moderation (allow, remove, etc) does not work if the base path is something else than /, e.g. when it has a language prefix. THis is due to the way the path to the ajax backend is created in abuse.js:

$form.ajaxForm({
			url:	Drupal.base_url + 'admin/abuse/moderate/content/js',
			type:	'post',

There's a slash missing before admin.

CommentFileSizeAuthor
#1 abuse_814728.patch727 bytesStefan Freudenberg

Comments

Stefan Freudenberg’s picture

Status: Active » Needs review
StatusFileSize
new727 bytes

Here's a patch to address the issue.

buzzman’s picture

Version: 6.x-1.1-alpha1 » 6.x-1.x-dev

looks like this URL should also be corrected in 6x-1.x-dev @ line 21 in the abuse.js file since it also misses the single slash.

AlexisWilke’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community

I applied that patch (by hand) and now abuse works properly with i18n.

We just added internationalization and it was not working because of that bug because the base path includes the language (i.e. "enadmin/abuse/..." won't work at all.)