API Improvements around context for linking

Use the context of the current controller for creating a 'view' link for
an external content item if the current controller is the external content
page.