Expand urlTemplate

Expand urlTemplate to work with filter using $compile