<script>
if(window.location.hash) {
let hash = window.location.href.split('#')[1]
if(hash != '')
{
charList = ['~', '*', '-', '_', ':', '(', ')', '@', '.'];
if(hash.startsWith('t?v='))
{
charList = ['~', '*', '-', '_', ':', '(', ')', '@', '.', '!','$'];
}
for (let i = 0; i < charList.length; i++) {
hash = hash.replaceAll(charList[i], '');
}
window.location.href = '/'+hash;
}
} else {
window.location.href = '/home/index.html';
}
</script>