wixLocation.path returns all path elements only ones.
For example for url www.domain.com/page1/param1/param2
On the first page load (after publishing) wixLocation.path returns: [page1, param1, param2]
On the second and next page reload it returns: [page1]