Posted by dwarner on March 28, 2008 at 5:45pm
Jump to:
| Project: | Spam |
| Version: | 5.x-3.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
Including $base_url in the generated url in the emails doesn't work since Drupal's url() function will add in the subdirectory drupal is installed in, so you get the subdirectory twice, like so:
http://www.mozdev.org/drupal/drupal/comment/edit/40
$base_url ---^^--- url()
Where it should be:
http://www.mozdev.org/drupal/comment/edit/40
| Attachment | Size |
|---|---|
| spam-5.x-1.1-2-url.patch | 3.84 KB |
Comments
#1
Non-monospace text screwed up my explanation of what was $base_url and what was url();
For this URL: http://www.mozdev.org/drupal/drupal/comment/edit/40
$base_url = http://www.mozdev.org/drupal
url('comment/edit/40') = /drupal/comment/edit/40
#2
I'll review this fix for the 3.x development branch.
#3
Bug not applicable to 3.x version of the spam module, closing.
#4
Automatically closed -- issue fixed for two weeks with no activity.