Clicking just to the side of a point sends you to a broken link page. This also occasionally happens clicking on the point itself.

CommentFileSizeAuthor
#6 OpenLayers.js_.zip193.05 KBtmcw
#2 mid_firefox_error.png9.11 KBjmcl
#2 mid_firefox.png176.15 KBjmcl

Comments

tmcw’s picture

What page in particular does it bring you to? Is there an online example of this bug?

jmcl’s picture

StatusFileSize
new176.15 KB
new9.11 KB

At the moment the site is in development behind a firewall. However, I have attached images that hopefully will explain better what is going on.

tmcw’s picture

What click behavior is enabled here? Or which behaviors in general?

jmcl’s picture

I disabled WFS and the error stopped occuring, so the error is with WFS not Openlayers.

tmcw’s picture

Project: Openlayers » WFS
Version: 6.x-2.0-alpha8 » 6.x-1.x-dev
Component: OpenLayers UI » Code

Moving to the WFS module, then.

tmcw’s picture

Status: Active » Needs work
StatusFileSize
new193.05 KB

This problem is very, very likely derived from this upstream bug in the OpenLayers javascript library. It can be averted by applying the patch there or using a patched version of OpenLayers.js, as attached.

tmcw’s picture

Status: Needs work » Closed (works as designed)

Well, this is an upstream bug in OpenLayers, and there's nothing that I can do to fix it beyond futher supporting the patch I've submitted to ol.org.

azuledu’s picture

Same error for me. I always get "/undefined" url.

I'm using the patched version of openlayers.js

I don't understand the line "url = $(url).attr('href');" in wfs_behavior_virtualclick.js file. This is the line which sets url=undefined.

Any idea?

Thanks.

tmcw’s picture

That line is trying to get the URL out of a linked field - basically it takes the element and gets the 'href' attribute, which is the URL. The most likely cause of this problem is that you're using a stock OpenLayers instead of the one linked above - the stock version is unable to get HTML from the WFS protocol.