I need some help. Im using a image to link to a popup windows. the image show perfect with this kind of path:

/sites/default/files/styles/large/public/suscribe.png

Most of the node path in my site are something like:

mynamedomain.com/node

But I have some node with this path:

mynamedomain.com/idea/node

In this case the image path end in this:

/idea/sites/default/files/styles/large/public/suscribe.png

And the image dont display.

There is any solution? some code?

I can change the node path but I prefer to keep the urls.

There is a why to add a absolute path?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

eric.napier’s picture

This issue is caused by a missing forward slash in the path of the image tag in "includes/popup.util.inc". The issue is also mentioned on this closed issue here: https://www.drupal.org/project/popup/issues/1738576#comment-8535495, and is leading to other users developing alternate solutions and hacking this module: https://www.drupal.org/project/popup/issues/2034085, https://www.drupal.org/project/popup/issues/1805842.

Merging this patch should fix the issue for everybody, and allow images to be used as the title for the popup by following the instructions in the module's README.TXT.

eric.napier’s picture

Status: Active » Needs review
vuil’s picture

Version: 7.x-1.3 » 7.x-1.x-dev

I move the issue to 7.x-1.x-dev branch and will commit the patch #1.

vuil’s picture

Status: Needs review » Fixed

Thank you!

vuil’s picture

vuil’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

vuil’s picture