mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-18 05:25:08 +00:00
Add failing test for #589
This commit is contained in:
@@ -1 +1,2 @@
|
||||
<h1>Great success!</h1>
|
||||
<h1>Great success!</h1>
|
||||
<a href="redirect-from">redirect from</a>
|
||||
|
||||
7
test/apps/with-basepath/src/routes/redirect-from.svelte
Normal file
7
test/apps/with-basepath/src/routes/redirect-from.svelte
Normal file
@@ -0,0 +1,7 @@
|
||||
<script context="module">
|
||||
export function preload() {
|
||||
this.redirect(301, 'redirect-to');
|
||||
}
|
||||
</script>
|
||||
|
||||
<h1>unredirected</h1>
|
||||
1
test/apps/with-basepath/src/routes/redirect-to.svelte
Normal file
1
test/apps/with-basepath/src/routes/redirect-to.svelte
Normal file
@@ -0,0 +1 @@
|
||||
<h1>redirected</h1>
|
||||
Reference in New Issue
Block a user