Replace all $interval occurrences in query string

because template