Use path to determine track and slug. See #1663