Skip to content

Commit 17299ec

Browse files
committed
OpenCodeLaw: fix for now
Signed-off-by: kiranpranay <[email protected]>
1 parent 2c336a5 commit 17299ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/opencodelaw.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ fetch(src)
117117
navSectionSubLi.classList.add("nav-list");
118118
const navSectionSubLink = document.createElement("a");
119119
navSectionSubLink.classList.add("nav-a");
120-
navSectionSubLink.href = `${navArticleId}/section${index + 1}`;
120+
navSectionSubLink.href = `${navArticleId}-section${index + 1}`;
121121
navSectionSubLink.textContent = `${index + 1}. ${section.title}`;
122122
navSectionSubLi.appendChild(navSectionSubLink);
123123
navSectionUl.appendChild(navSectionSubLi);
@@ -179,7 +179,7 @@ fetch(src)
179179
articleContainer.appendChild(sectionContainer);
180180
sections.forEach((section, index) => {
181181
const sectionContainerH3 = document.createElement("h3");
182-
sectionContainerH3.id = `${articleId}/section${index + 1}`;
182+
sectionContainerH3.id = `${articleId}-section${index + 1}`;
183183
sectionContainerH3.classList.add("heading-secondary");
184184
sectionContainerH3.textContent = `${index + 1}. ${section.title}`;
185185
sectionContainer.appendChild(sectionContainerH3);

0 commit comments

Comments
 (0)