Change {{url}} into a synchronous helper

Closes #3961