Skip to content

Commit b9f16dd

Browse files
committed
SPA Router commit #3 (debugging for deploy)
1 parent 38bb664 commit b9f16dd

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<a href="/otus-learning/Link4">Link 4</a>
1515
<a href="/otus-learning/Link5">Link 5</a>
1616
<a href="/otus-learning/Link6">Link 6</a>
17-
<a href="/otus-learning/Link7">Link with another render</a>
17+
<a href="/otus-learning/_link_">Link with another render</a>
1818
<div id="logs" class="main-container__log log-container"></div>
1919
</section>
2020
</body>

src/script/routerVisualisation.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,14 @@ export const startVisualisation = (syncAsync: number) => {
9090
});
9191

9292
router.on(
93-
new RegExp("^/otus-learning/[a-zA-z]+[0-9]*$"),
93+
new RegExp("^/otus-learning/[a-zA-z]+[0-9]+$"),
9494
hooksCreator("onBeforeEnter()", syncAsync),
9595
hooksCreator("onEnter()", syncAsync),
9696
hooksCreator("onLeave()", syncAsync),
9797
renderCreator("log-container__text")
9898
);
9999
router.on(
100-
() => "/otus-learning/links/Link7",
100+
() => "/otus-learning/_link_",
101101
hooksCreator("onBeforeEnter()", syncAsync),
102102
hooksCreator("onEnter()", syncAsync),
103103
hooksCreator("onLeave()", syncAsync),

0 commit comments

Comments
 (0)