[OpenLayers-Trac] [OpenLayers] #3381: Permalink produces wrong result if URL contains an anchor

OpenLayers trac-20090302 at openlayers.org
Wed Jun 22 11:10:19 EDT 2011


#3381: Permalink produces wrong result if URL contains an anchor
-------------------------------+--------------------------------------------
 Reporter:  aviaron            |       Owner:  crschmidt   
     Type:  bug                |      Status:  new         
 Priority:  minor              |   Milestone:  2.11 Release
Component:  Control.Permalink  |     Version:  2.10        
 Keywords:  permalink hash     |       State:              
-------------------------------+--------------------------------------------
 If the URL contains an anchor, the Permalink control does not remove it
 when producing the permalink url, resulting in an invalid URL.

 For example: Adding a Permalink to a page whose URL is
 http://example.com/map#foo will produce the following permalink:
 http://example.com/map#foo?zoom=4&lat=32.323&lon=34.908&layers=BT

 The expected result would have the original anchor appended at the end of
 the URL:
 http://example.com/map?zoom=4&lat=32.323&lon=34.908&layers=BT#foo

-- 
Ticket URL: <http://trac.openlayers.org/ticket/3381>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list