I make custom module with small modification of rate widget configuration interface. With this new configuration options users can configure widget to allow authenticated users to vote multiple times, set time limit between new votes and set redirect path.
For some reason is redirect URL created with spaces before and then widget is replaced by redirect URL.
In redirect field i use something like "node/[nid]" and created URL seems like " http://www.example.com/mypathalias".
I prevent this with simple regular expression change in file rate.js on line 34:
if (data.match(/^(\s+)?https?\:\/\/[^\/]+\/(.*)$/)) {
This is maybe problem somewhere in my site but i'm not able find reason. Where can i start debuging this?
Comments
Comment #0.0
havran commentedMore information.
Comment #1
thomas.feichter commentedWith a small modification also working for 7.x
Comment #2
thomas.feichter commentedWith a small modification also working for 7.x
Comment #2.0
thomas.feichter commentedPhp eat my \
Comment #3
lamp5