Hello,

I have installed contextlinks module 1.8.2.1 on 4.7.3 and I have problem with path of icon files. They are not showing because of incorrect path.

it should be: www.example.com/modules/contextlinks/images/external.gif

but it is: www.example.com/?q=/modules/contextlinks/images/external.gif

Could anyone help me?
Houmr

Comments

Sean Et Cetera’s picture

Title: Incorrect path » I can't help but...

I am attempting to update my site from 4.6.x to the latest 4.7.x release, and when attempting to use the contextlinks module, I encountered a similar issue. When looking at the main page of the test site (http://test.sean-ward.com), the contextlinks for my external links looked like this:

Brought to you by the same city which arrested those who had airsoft guns external.

It doesn't show up, but the link is "arrested those who had airsoft guns" and the image, doesn't show up and is replace with "external". However, when you view the actual node (http://test.sean-ward.com/?q=node/194), it shows up as:

Brought to you by the same city which arrested those who had airsoft guns {image}.

The link is right and the image shows up.

One issue I encountered was that I put my modules into a directory called "contrib", so I had to update the location of the images. However, after looking at the code I noticed that there was a difference in the link image code. On the front page, the source code looked like this (line breaks added to show difference better):

<span class="contextlinks contextlinks-external">
	<span class="contextlinks-text">
		<a href="http://sean-ward.com/?q=node/167" rel="CONTEXTLINKS_NEW_WINDOW">
			arrested those who had airsoft guns
		</a>
	</span>
	<a href="http://sean-ward.com/?q=node/167" rel="CONTEXTLINKS_NEW_WINDOW">
		<img src="/?q=modules/contrib/contextlinks/images/external.gif" alt="external" />
	</a>
</span>

and on the node page, it looked like this:

<span class="contextlinks contextlinks-external">
	<span class="contextlinks-text">
		<a href="http://sean-ward.com/?q=node/167" rel="CONTEXTLINKS_NEW_WINDOW">
			arrested those who had airsoft guns
		</a>
	</span>
	<a href="http://sean-ward.com/?q=node/167" rel="CONTEXTLINKS_NEW_WINDOW">
		<img src="http://test.sean-ward.com/modules/contrib/contextlinks/images/external.gif" alt="external" />
	</a>
</span>

I had an issue where the images would not show up unless I did a direct url to them; before I did that, I didn't have any images. As you can see, the node page has the image showing up correctly, but the frontpage fails to correctly show the image. I had also tried this on my brother-in-law's computer, but it still displayed wrong, so it can't be a cache issue.

I'm trying to look at the code now to figure out where this is happening, but as I am unfamiliar with it, it's taking a bit of time.

Sean Et Cetera’s picture

Title: I can't help but... » I apologize

I missed one minor thing: the excerpt module. Once I put that up and refreshed the page a handful of times, they worked. So, let that be a warning to everyone else.

duaelfr’s picture

Status: Active » Closed (won't fix)

This version of Context links is not supported anymore. The issue is closed for this reason.
Please upgrade to a supported version and feel free to reopen the issue on the new version if applicable.

This issue has been automagically closed by a script.