Checking the current_branch[i] route match against the current request's route match.

current_branch[i].match.slice(1, i+2) compared to match.slice(1, i+2)

Fixes https://github.com/sveltejs/sapper/issues/688
This commit is contained in:
Brian Takita
2019-05-13 02:38:15 -04:00
parent 7aa3e90f87
commit 5460896228
6 changed files with 74 additions and 11 deletions

View File

@@ -16,4 +16,5 @@
</script>
<span>z: {$page.params.z} {count}</span>
<a href="foo/bar/qux">click me</a>
<a href="foo/bar/qux">goto foo/bar/qux</a>
<a href="foo/abc/def">goto foo/abc/def</a>