liveglue.js need to cut out anchors too

Bug #1189412 reported by Sergey Klyaus
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nevow
New
Undecided
Unassigned

Bug Description

Hi!

I am using Nevow and it's pretty cool. But I encountered a bug with liveglue.js

I am using '#' in hrefs for dynamic contents, so it makes urls like http://host/path#
That is ok, but if user reloads page, liveglue reinitializes and makes all live requests URIs like http://host/path#/livepage_client/... which is completely broken.

Simply added this code to liveglue.js

var anchorIndex = base_url.indexOf('#');
if (anchorIndex != -1) {
  base_url = base_url.substring(0, anchorIndex);
 }

and everything works.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.