makeReturnUrl function
Implementation
String makeReturnUrl() {
final uri = Uri.parse(window.location.href);
var result = '${uri.scheme}://${uri.host}';
if (uri.port != 80 && uri.port != 443) {
result += ':${uri.port}';
}
result += uri.path;
return result;
}