I want to create a simeple page on my website that redirects users to another page based on url parameters in javascript.
Basically I want to have something like this url https://example.com/go?redirect=google.com
that when visited redirects users to google or any url entered in after ?redirect=
.
Is this possible in JavaScript, and if so how would I go about writing code to make this function?