Level 102
parse_url('http://example.com/and-i-want/only/this-part')['path']
1 like
If I use the url helper the output is the full path with the domain name:
http://example.com/and-i-want/only/this-part
What helper allows me to grab only the and-i-want/only/this-part?
This is such a common thing to do, but I can't find anything through Google.
parse_url('http://example.com/and-i-want/only/this-part')['path']
Please or to participate in this conversation.