tomhiggins/anyfesto

Redirection problem with some sites

Opened this issue · 3 comments

Hey @tomhiggins.

After successfully installing Anyfesto there are some pages that are not redirected to the main page.

URL Redirect Error
http://www.google.com Yes None
http://www.raspberry.org Yes None
http://www.raspberry.org/blog/ No Cannot connect
http://www.instructables.com/category/technology/ No 404 - not found
https://www.thingiverse.com No Cannot connect

I guess this is an issue with the captive portal where the regex does not take into account https and the end of an URL.

I guess we might need to change this into something like \b.*(?<![0-9])

You can check if it works in here: (https://regex101.com/)[https://regex101.com/]

URLs that I use to test:

www.demo.com
http://foo.co.uk/
http://regexr.com/foo.html?q=bar
https://mediatemple.net/
http:10.99.11.1:19485
https://www.mediatemple.net/
google.com

Regards.

Hey there!

Have you been able to reproduce the error?

Regards.

I will try to get to it soon. Life has been keeping off the dev and debug, but I will try to get this on the ToDo stack Thanks for you patience.

No problem, just trying to help :)

If you need any other information or anything I can do just let me know.
Best regards.