SyntaxFix
Write A Post
Hire A Developer
Questions
Based on @epegzz suggestion for the regex.
( url ) => { return url.match('^[^?]*')[0].split('/').slice(1) }
returns an array with paths.