redirect to external URLs - closes #490

This commit is contained in:
Rich Harris
2018-10-27 12:14:28 -04:00
parent ab52aabd1d
commit e69cb3639a
5 changed files with 66 additions and 8 deletions

View File

@@ -1,4 +1,5 @@
<h1>root</h1>
<a href="redirect-from">redirect from</a>
<a href="redirect-to-root">redirect to root</a>
<a href="redirect-to-root">redirect to root</a>
<a href="redirect-to-external">redirect to external</a>

View File

@@ -0,0 +1,9 @@
<h1>unredirected</h1>
<script>
export default {
preload() {
this.redirect(301, 'https://example.com');
}
};
</script>