The C++ browsertest uses Base64Url whereas JS' window.atob() uses Base64.
17 lines
364 B
HTML
17 lines
364 B
HTML
<html>
|
|
<head>
|
|
<script>
|
|
function redirectToDestination() {
|
|
const urlParams = new URLSearchParams(window.location.search);
|
|
const url = urlParams.get('url');
|
|
window.location = atob(url.replace(/\-/g, '+').replace(/\_/g, '/'));
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<p>Waiting for JS redirect...</p>
|
|
<script>
|
|
setTimeout(redirectToDestination, 100);
|
|
</script>
|
|
</html>
|