Fix #110: URL for Link object is wrong on the navigation portlet if it contains variables.

Also: Refactor to reuse logic between view, template and indexer. Test behavior of @@link_redirect_view