Permalink
Browse files

don't make all page requests append #/

  • Loading branch information...
1 parent db51b77 commit 4113ef338e85ccfa5c6c2528257dc8e28efa9ef3 @jchris jchris committed Aug 14, 2010
Showing with 5 additions and 3 deletions.
  1. +1 −1 shows/page.js
  2. +4 −2 vendor/couchapp/_attachments/jquery.pathbinder.js
View
@@ -14,7 +14,7 @@ function(doc, req) {
}
data.title = doc.title;
data.title_json = JSON.stringify(doc.title);
- data.begin = "/";
+ data.begin = "";
data.atts = [];
if (doc._attachments) {
for (name in doc._attachments) {
@@ -111,8 +111,10 @@
};
function goPath(newPath) {
- // $.log("goPath", newPath)
- window.location = '#'+newPath;
+ if (newPath) {
+ // $.log("goPath", newPath)
+ window.location = '#'+newPath;
+ }
_lastPath = getPath();
};

0 comments on commit 4113ef3

Please sign in to comment.