If you import getOwner you can do this:
const path = getOwner(this).lookup('controller:application').get('currentPath');
If you import getOwner you can do this:
const path = getOwner(this).lookup('controller:application').get('currentPath');