This repository has been archived by the owner on Jan 11, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 432
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Checking the current_branch[i] route match against the current reques…
…t's route match. current_branch[i].match.slice(1, i+2) compared to match.slice(1, i+2) Fixes #688
- Loading branch information
Showing
6 changed files
with
74 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,18 @@ | ||
<script context="module"> | ||
export function preload({ query, params }) { | ||
const { rest } = params; | ||
return { rest }; | ||
} | ||
</script> | ||
|
||
<script> | ||
import { stores } from '@sapper/app'; | ||
const { page } = stores(); | ||
export let rest; | ||
</script> | ||
|
||
<h1>{$page.params.rest.join(',')}</h1> | ||
<h2>{rest.join(',')}</h2> | ||
|
||
<a href="xyz/abc/qwe/deep.json">deep</a> | ||
<a href="xyz/abc">back</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,20 @@ | ||
<script context="module"> | ||
export function preload({ query, params }) { | ||
const { rest } = params; | ||
return { rest }; | ||
} | ||
</script> | ||
|
||
<script> | ||
import { stores } from '@sapper/app'; | ||
const { page } = stores(); | ||
export let rest; | ||
</script> | ||
|
||
<h1>{$page.params.rest.join(',')}</h1> | ||
<h2>{rest.join(',')}</h2> | ||
|
||
<a href="xyz/abc/deep">deep</a> | ||
<a href="xyz/abc">deep</a> | ||
<a href="xyz/abc/def">deep</a> | ||
<a href="xyz/abc/def/ghi">deep</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters