Skip to content

schrags08/redirector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

6 Commits

Repository files navigation

JavaScript Redirect Example

HOW TO USE

Determine the URL you'd like to redirect to, e.g. https://farkusmusic.bandcamp.com

Run encodeURIComponent on this URL to encode unsafe characters...

encodeURIComponent('https://farkusmusic.bandcamp.com');// result: "https%3A%2F%2Ffarkusmusic.bandcamp.com"

Visit https://schrags08.github.io/redirector/index.html and open the console.

Add a redirectUrl query string parameter to the URL

Provide your encoded destination URL as the value for the parameter:

e.g. https://schrags08.github.io/redirector/index.html?redirectUrl=https%3A%2F%2Ffarkusmusic.bandcamp.com

Explore the script in index.html to make changes and get a better understanding.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages