aboutsummaryrefslogtreecommitdiffstats
path: root/htdocs
diff options
context:
space:
mode:
Diffstat (limited to 'htdocs')
-rw-r--r--htdocs/src/js/app.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/htdocs/src/js/app.js b/htdocs/src/js/app.js
index 57ac458..38aee0e 100644
--- a/htdocs/src/js/app.js
+++ b/htdocs/src/js/app.js
@@ -246,7 +246,7 @@ function showProject(id) {
name: currentProject.name,
});
detailsBtn.addEventListener('click', toggleProjectDetails);
- window.history.pushState({}, currentProject.name, `#${id}`);
+ window.history.pushState({}, currentProject.name, `/#${id}`);
document.title = `${currentProject.name} | Demo | Armand Philippot`;
main.replaceChildren(preview, details);
}
@@ -276,7 +276,7 @@ function getProjectsNavItem(id, name) {
const item = document.createElement('li');
const link = document.createElement('a');
link.classList.add('nav__link');
- link.href = `#${id}`;
+ link.href = `/#${id}`;
link.id = id;
link.textContent = name;
link.addEventListener('click', (e) => {