prime8dev

prime8dev
git clone https://git.prime8.dev/prime8dev.git
Log | Files | Refs | README | LICENSE

commit 6411e211ecda32b92195fc74a32569b3a0759e71
parent a9de1d56291a06d791c56e041b656f3aa0d15fff
Author: Damian Myrda <damian@prime8.dev>
Date:   Thu, 22 Oct 2026 00:33:09 +0000

web: /projects shows janitor, so URL and title say /projects/janitor

Diffstat:
Minternal/web/scripts/modules/projects.js | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/internal/web/scripts/modules/projects.js b/internal/web/scripts/modules/projects.js @@ -124,6 +124,10 @@ export function initProjects() { const initialItem = section.querySelector(".list-item.selected") || items[0]; setSelected(initialItem); + // /projects shows the first project, so the URL and title name it too. + if (window.location.pathname.replace(/\/+$/, "") === "/projects") { + updateProjectURL(initialItem?.dataset.id); + } const detailContainer = document.getElementById("project-detail"); const needsInitialFetch = detailContainer?.querySelector("[data-project-placeholder='true']");