Pass book params (page, view mode, etc) to OL contact form
authorMichael Ang <mang@archive.org>
Tue, 30 Nov 2010 23:11:24 +0000 (23:11 +0000)
committerMichael Ang <mang@archive.org>
Tue, 30 Nov 2010 23:11:24 +0000 (23:11 +0000)
BookReaderIA/datanode/BookReaderJSIA.php

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