[ka-Map-users] "LinkToView" adds additional slashes to URL?
Paul Spencer
pspencer at dmsolutions.ca
Wed Nov 15 20:56:23 EST 2006
Everything that I can find indicates that window.location.pathname
includes the leading / so you are probably correct. Committed change
to cvs ...
Cheers
Paul
On 15-Nov-06, at 1:57 PM, Steve Walker wrote:
> Hello,
>
> I have been looking at the 'LinkToView' functionality and have
> observed
> that it appears to be adding additional slashes into the URL,
> between the
> port number and the URL path.
>
> I have seen this on my own installations:
> For example, after 4 LinkToView clicks
> http://mapsachusets.com/Boston becomes
> http://mapsachusetts.com////Boston/?
> map=Mapsachusetts&cps=236146.8474807024,902206.4544751812,3000&layers=
> Air%20Photo
>
> As well as external sites
> http://www.ominiverdi.org///ka-map/ka-map/htdocs/index_winman.html?
> map=cvs&cps=0,0,100000000&layers=__base__,Countries
>
> Working with the startUp.js script it would appear that the additional
> slash is added between window.location.port and
> window.location.pathname
> as below:
>
> var url = window.location.protocol+'/'+'/'+window.location.host
> +':'+window.location.port+'/'+window.location.pathname+'?';
>
> I have modified startUp.js on my server to remove this slash to yield:
>
> var url = window.location.protocol+'/'+'/'+window.location.host
> +':'+window.location.port+window.location.pathname+'?';
>
> And I believe that I have solved this problem on my site. However,
> as I
> have modified the init.php scripts specifically to alter the URLs
> therein,
> it is possible that this is just a local fix for me. But seeing this
> effect on multiple ka-map! sites yields me to believe the problem is
> universal.
>
> What sayeth you?
>
> -Steve
>
>
>
> --
> Steve Walker
> Middle Fork Geographic Information Services
> walker at mfgis.com
> 360-671-2505
>
> _______________________________________________
> ka-Map-users mailing list
> ka-Map-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/ka-map-users
+-----------------------------------------------------------------+
|Paul Spencer pspencer at dmsolutions.ca |
+-----------------------------------------------------------------+
|Chief Technology Officer |
|DM Solutions Group Inc http://www.dmsolutions.ca/ |
+-----------------------------------------------------------------+
More information about the ka-Map-users
mailing list