Exploiting DOM-based Open redirect

With a real-world example:
Open Redirect/URL Redirection:
Un-validated redirects and forwards are possible when a web application accepts untrusted input that could cause the web application to redirect the request to a URL contained within untrusted input.