fix #1311 edit url

This is blocked on #1366

It also exposes something about #1366 I need to go back and fix.