Put domain in route output. Closes #1388.