Fixed grabbing of right url when editing.