(Flask): url_for('index', _external=True) PHP (Laravel): url('/') or route('index') Node.js (Express): ${req.protocol}://${req.headers.host}${req.originalUrl} Ruby (Sinatra): #{request.scheme}://#{request.host_with_port}/ ASP.NET Core: Url.Action("Index", "Home", null, Request.Scheme)