I think you'll always have to do something like this somewhere, but maybe you could hide it in a more generally available url helper, as we're bound to want to link to html versions elsewhere.

Alternatively, you could un-inline it and switch on the edition.type so-as to make it more explicit.