If you decode it and open the link, you are potentially leaking data to whoever controls the domain of the URL.
Still good to have alternative implementations, though. The Javascript could be silently stealing the URL fragment on only specific requests, so there's no real way to audit it to be sure.