Handle anchor hooks for full path matches as well.