url


urlstringRead-only

Returns the full URL of a call to an HTTP function.

Premium sites: Premium site URL

Free sites: Free site URL

Get the URL of a call to an HTTP function
JavaScript
// In http-functions.js export function use_myFunction(request) { let url = request.url; // Premium site: // "https://www.domain.com/_functions/myFunction/sub?q=value" // // Free site: // "https://user_name.wixsite.com/mysite/_functions/myFunction/sub?q=value" }
Did this help?