Skip to content

Commit 45f371d

Browse files
committed
fix default doc link if no doc or before loading
1 parent 930035c commit 45f371d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

eNMS/static/js/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function doc(page) {
3737
view: "inventory/network_visualization.html",
3838
workflow_builder: "automation/workflows.html",
3939
}[page];
40-
$("#doc-link").attr("href", `${settings.app.documentation_url}${endpoint}`);
40+
$("#doc-link").attr("href", `${settings.app.documentation_url}${endpoint || ''}`);
4141
}
4242

4343
function switchTheme(theme) {

eNMS/templates/base_site.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ <h3 id="eNMS-version" class="version" style="font-size: {{ version_size }}px;">
215215
<a
216216
id="doc-link"
217217
target="_blank"
218-
href="https://enms.readthedocs.io/en/latest/base/introduction.html"
218+
href="https://enms.readthedocs.io/en/latest"
219219
>
220220
<img
221221
src="{{ url_for('static', filename='img/readthedocs.png') }}"

0 commit comments

Comments
 (0)