Error when deleting relation

This fixes a missing route error when trying to delete a relation.

This uses part of the changes in #68 - those changes were never merged, but I ran into this issue and this was the minimal fix that corrected it.