Signature
Parameters
Path to the SQLPage file
Optional JSON object with URL parameters
Optional hash/fragment for the URL
Return Value
Properly encoded URL
Description
Thelink() function builds URLs with properly encoded parameters, preventing injection and encoding issues.
Examples
Link to Product Page
Link with Multiple Parameters
Link with Fragment
Related Functions
- sqlpage.url_encode() - Encode URL components
- sqlpage.set_variable() - Modify current URL
- sqlpage.path() - Get current path