BarlowProgramming / redirect

chrome extension to help people focus on their work
0 stars 1 forks source link

Redirect loop if no "http://" prepending redirect address #16

Closed jlam55555 closed 8 years ago

jlam55555 commented 8 years ago

I entered "www.google.com" into the redirect address, and this ended in a deadly redirect loop.

For example:

  1. Enter in www.facebook.com
  2. Page redirects to https://www.facebook.com/www.google.com
  3. Page redirects to https://www.facebook.com/wwwgooglecom/www.google.com (a FB 404 error, not a redirect from the extension)
  4. Page redirects to https://www.facebook.com/www.google.com
  5. Back to step 3...

Another scenario that I encountered once when testing this was that it stopped at step 3: it essentially bypassed the block. (Only once, however— it might just have been slow to redirect)

Can we automatically add in the http:// or https:// if not in the redirect address to avoid relative links, or alert the user to use full, absolute URLs?