Javascrip and image urls are wrong when drupal is instaled on a subdirectory.

I made this change to solve the problem:

  // set up final return array
  if (variable_get('clean_url', 0)) {
    // the site uses clean URLs, so we need to prepend a slash
    $image['filename'] = '/';
  }
  $image['filename'] .= drupal_get_path('module', 'weather').'/images/'.$name.'.png';

with:

  $image['filename'] = url(drupal_get_path('module', 'weather').'/images/'.$name.'.png');

(sorry, I do not know how this issue tracking system works)
thank you!

Comments

toddy’s picture

Assigned: Unassigned » toddy
Status: Active » Fixed

Hi,

thanks for the bug report. I've fixed this, and I'll release an updated version of the module shortly.

Regards,
Tobias

toddy’s picture

Status: Fixed » Closed (fixed)

The new version is out.