Download & Extend

Missing slash in urls created by abuse.js

Project:abuse
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review

Issue Summary

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.

Comments

#1

Status:active» needs review

Here's a patch to address the issue.

AttachmentSize
abuse_814728.patch 727 bytes

#2

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.

nobody click here