Skip to content

Commit

Permalink
fix deployed permalinks - maybe
Browse files Browse the repository at this point in the history
  • Loading branch information
colinmorris committed Mar 2, 2017
1 parent d4020b2 commit cb5c699
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/firebasehelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ const config = {
messagingSenderId: "845644117075"
};

//const SONG_PREFIX = '/songs/';
const SONG_PREFIX = '/songsTest/';
const SONG_PREFIX = '/songs/';
//const SONG_PREFIX = '/songsTest/';

class DBHelper {

Expand Down
6 changes: 5 additions & 1 deletion src/verse.js
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,11 @@ class CustomVerse extends Verse {
}
get_permalink(router) {
if (this.key) {
return window.location.origin + router.createHref('/custom/' + this.key);
// TODO: pretty darn hacky. Surely there's a better way?
return (window.location.origin
+ window.location.pathname
+ router.createHref('/custom/' + this.key)
);
}
}

Expand Down

0 comments on commit cb5c699

Please sign in to comment.