Add HTML Redirect

This commit is contained in:
RotationMatrix 2019-10-01 18:02:45 -04:00
parent 6ec45bc2a6
commit 3c093eecce
No known key found for this signature in database
GPG Key ID: 5A63E6FCD622708E
4 changed files with 18 additions and 1 deletions

View File

@ -1 +0,0 @@
security-settings

View File

@ -0,0 +1,5 @@
_model: redirect
---
target: ../security-settings/
---
_discoverable: no

7
models/redirect.ini Normal file
View File

@ -0,0 +1,7 @@
[model]
name = Redirect
[fields.target]
label = Target
type = string
description = Target holds the destination of the redirect. It allows absolute and relative paths.

6
templates/redirect.html Normal file
View File

@ -0,0 +1,6 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0; url={{ this.target }}">
</head>
</html>