mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-17 21:24:59 +00:00
implement this.redirect in preload (#83)
This commit is contained in:
7
test/app/routes/redirect-from.html
Normal file
7
test/app/routes/redirect-from.html
Normal file
@@ -0,0 +1,7 @@
|
||||
<script>
|
||||
export default {
|
||||
preload() {
|
||||
this.redirect(301, '/redirect-to');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
Reference in New Issue
Block a user