Search.../

url

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

Description

Premium sites: Premium site URL

Free sites: Free site URL

Type:

stringRead Only

Was this helpful?

Get the URL of a call to an HTTP function

Copy Code
1// In http-functions.js
2
3export function use_myFunction(request) {
4
5 let url = request.url;
6 // Premium site:
7 // "https://www.domain.com/_functions/myFunction/sub?q=value"
8 //
9 // Free site:
10 // "https://user_name.wixsite.com/mysite/_functions/myFunction/sub?q=value"
11
12}