Encode # as %23 when passing as get arg.
authorMichael Ang <mang@archive.org>
Tue, 30 Nov 2010 23:15:05 +0000 (23:15 +0000)
committerMichael Ang <mang@archive.org>
Tue, 30 Nov 2010 23:15:05 +0000 (23:15 +0000)
BookReaderIA/datanode/BookReaderJSIA.php

index 01e60ba..8f2382f 100644 (file)
@@ -401,7 +401,7 @@ br.buildInfoDiv = function(jInfoDiv) {
     }
     
     jInfoDiv.find('.BRfloatTitle a').attr({'href': this.bookUrl, 'alt': this.bookTitle}).text(this.bookTitle);
-    var bookPath = (window.location + '').replace('#','/');
+    var bookPath = (window.location + '').replace('#','%23');
     jInfoDiv.find('a.problem').attr('href','http://openlibrary.org/contact?path=' + bookPath);
 
 }