Commit f219fb9f authored by Vitaly Lipatov's avatar Vitaly Lipatov

eget: only clear filename for root URL redirects, not all http URLs

parent c05d69d1
......@@ -2107,8 +2107,8 @@ url_get_filename()
loc="$(echo "$loc" | sed -e "s|\?.*||")"
fi
# hack for redirect to the main page
if is_httpurl "$loc" ; then
# hack for redirect to the main page (root URL with no filename)
if echo "$loc" | grep -qE '^https?://[^/]+/?$' ; then
loc=""
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment