Skip to content

Commit b24fe42

Browse files
Bugfix: reflection urls use platform specific directory separator, see #139
1 parent fa9033b commit b24fe42

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bin/typedoc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8934,7 +8934,7 @@ var td;
89348934
DefaultTheme.buildUrls = function (reflection, urls) {
89358935
var mapping = DefaultTheme.getMapping(reflection);
89368936
if (mapping) {
8937-
var url = td.Path.join(mapping.directory, DefaultTheme.getUrl(reflection) + '.html');
8937+
var url = [mapping.directory, DefaultTheme.getUrl(reflection) + '.html'].join('/');
89388938
urls.push(new output.UrlMapping(url, reflection, mapping.template));
89398939
reflection.url = url;
89408940
reflection.hasOwnDocument = true;

src/td/output/themes/DefaultTheme.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ module td.output
413413
static buildUrls(reflection:models.DeclarationReflection, urls:UrlMapping[]):UrlMapping[] {
414414
var mapping = DefaultTheme.getMapping(reflection);
415415
if (mapping) {
416-
var url = Path.join(mapping.directory, DefaultTheme.getUrl(reflection) + '.html');
416+
var url = [mapping.directory, DefaultTheme.getUrl(reflection) + '.html'].join('/');
417417
urls.push(new UrlMapping(url, reflection, mapping.template));
418418

419419
reflection.url = url;

0 commit comments

Comments
 (0)