why didn't you stick with your first implementation and used `if (uri.relative? && !back_url.match(%r{\A//}) ...`