Redirection template

Handle @alias via the redirection template
This commit is contained in:
Tina_Azure
2023-04-05 02:24:42 +02:00
parent 2738fdaf5c
commit 1a1908a814
3 changed files with 91 additions and 1 deletions

View File

@ -0,0 +1,45 @@
<!DOCTYPE html>
<html>
<head>
<style>
table {
font-family: arial, sans-serif;
border-collapse: collapse;
width: 100%;
}
td, th {
border: 1px solid #dddddd;
text-align: left;
padding: 8px;
}
tr:nth-child(even) {
background-color: #dddddd;
}
</style>
</head>
<body>
<h1>Redirecting:</h1>
<script type="text/javascript">
function formAutoSubmit () {
var frm = document.getElementById("redirectBtn");
frm.click();
}
window.onload = formAutoSubmit;
</script>
<form action="/" method="post">
<button type="submit" class="button">Return to freelancer selection</button>
</form>
<form id="redirectForm" action="{{route}}" method="post">
<button id="redirectBtn" type="submit" name="{{routeparameter}}" value="{{routevalue}}" class="button">Redirecting to: {{route}}</button>
</form>
</body>
</html>