hyTags
HomeHome DocumentationDocumentation

url-get-path-components

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