This makes conditional the use of Sinatra's #to method in the controllers of the Web UI, as this method is not present in the new, non-Sinatra-based web UI. Depending on the presence of that method, this gem's controllers will make redirects using the Sinatra way or the (uglier) string-concatenating way.
Coverage remained the same at 98.099% when pulling c6fce73d9fcbbeecee8a186d7cc6b10a083a50e5 on ncuesta:fix-redirect-issues into b8a05aa935de0317c1ed8e0574008595b6e119fb on cryo28:master.
This makes conditional the use of Sinatra's
#to
method in the controllers of the Web UI, as this method is not present in the new, non-Sinatra-based web UI. Depending on the presence of that method, this gem's controllers will make redirects using the Sinatra way or the (uglier) string-concatenating way.