Skip to content

Commit

Permalink
fixes epubs query string param #644
Browse files Browse the repository at this point in the history
  • Loading branch information
danielweck committed Sep 6, 2017
1 parent 2ace70e commit a80336f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/js/EpubReader.js
Original file line number Diff line number Diff line change
Expand Up @@ -750,15 +750,17 @@ BookmarkData){

ebookURL = ensureUrlIsRelativeToApp(ebookURL);

var epubs = urlParams['epubs'];

var url = Helpers.buildUrlQueryParameters(undefined, {
epub: ebookURL,
epubs: " ",
epubs: (epubs ? epubs : " "),
embedded: " ",
goto: bookmark
});

history.replaceState(
{epub: ebookURL, epubs: undefined},
{epub: ebookURL, epubs: (epubs ? epubs : undefined)},
"Readium Viewer",
url
);
Expand Down

0 comments on commit a80336f

Please sign in to comment.