hyTags
HomeHome DocumentationDocumentation

url-get-path

Gets the path from a URL
Parameter
Type
Description
self
Url
The URL to get the path from
return
string
The path portion of the URL
Test Case:Get path from URL
    <div></div>
    
    <url-from-string string="https://example.com/api/v1/users">
    <url-get-path>
    <assert-equal value="/api/v1/users" type="string">
    
    👆 Try to change something!
  • Test succeeded Test failed