Fix TypeError when ``base_form`` was not defined.
Pass ``/admin/app/model/ID/...`` URLs to the correct admin backend.

Using the ID field, the correct ``ct_id`` parameter can already be
determined.