Redirection template
Handle @alias via the redirection template
This commit is contained in:
45
templates/alias_Redirect.html
Normal file
45
templates/alias_Redirect.html
Normal 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>
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user