Skip to content

Commit

Permalink
Fix some URLs ending with two slashes
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensworks committed Jul 31, 2019
1 parent ace8462 commit 8bb6b5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/serialize/HtmlInfoBookSerializer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ export class HtmlInfoBookSerializer {
protected filePathToUrl(filePath: string, basePath: string, baseUrl: string) {
let url = filePath.replace(basePath, baseUrl);
const last = basename(url);
if (last.indexOf('.') < 0) {
if (!url.endsWith('/') && last.indexOf('.') < 0) {
url = url + '/';
}
return url;
Expand Down

0 comments on commit 8bb6b5f

Please sign in to comment.