Skip to content

Commit 63bb944

Browse files
cKleeRubenVerborgh
authored andcommitted
added baseURL to h1
This renders the correct link if proxy uses a subdirectory.
1 parent 4e87c07 commit 63bb944

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/views/HtmlView.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ function HtmlView(viewName, settings) {
1414
if (!(this instanceof HtmlView))
1515
return new HtmlView(viewName, settings);
1616
var defaults = { cache: true, N3Util: N3Util,
17-
assetsPath: '/', title: '', header: settings && settings.title };
17+
assetsPath: '/', baseURL: '/',
18+
title: '', header: settings && settings.title };
1819
View.call(this, viewName, 'text/html', _.defaults({}, settings, defaults));
1920
}
2021
View.extend(HtmlView);

lib/views/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</head>
1111
<body>
1212
<header>
13-
<h1><a href="/"><%= header || 'Linked Data Fragments Server' %></a></h1>
13+
<h1><a href="<%= baseURL %>"><%= header || 'Linked Data Fragments Server' %></a></h1>
1414
<figure class="logo">
1515
<a href="http://linkeddatafragments.org/"><img src="<%= assetsPath %>logo" alt="Linked Data Fragments" /></a>
1616
</figure>

0 commit comments

Comments
 (0)