Match a data-attribute value with the last segment of a URL to display current page in a nav.