Don't redirect on localhost urls - fix #110