Files
vitfit-r2/site/public/redirect.html
T
2026-06-10 21:34:22 -04:00

26 lines
819 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Redirecting...</title>
<script>
document.addEventListener('DOMContentLoaded', () => {
const params = new URLSearchParams(window.location.search);
const token = params.get('token');
const workoutId = params.get('workoutId');
if (token && workoutId) {
localStorage.setItem('redirectToken', token);
window.location.href = `/workout/${workoutId}`;
} else {
alert('Missing token or workout ID');
window.location.href = '/dashboard.html';
}
});
</script>
</head>
<body>
<p>Redirecting...</p>
</body>
</html>