WIP - Deprecate most of the /browse/origin/.* URLs
Many URLs defined in the origin view (urlconf) are redundant. This fix redirects them to the corresponding object type URLs. eg: /origin/directory will be redirected to /directory/
Related to #3608
Test Plan
- Test the following URLs /browse/origin/directory/ /browse/origin/(?P<origin_url>.+)/visit/(?P.+)/directory/ /browse/origin/(?P<origin_url>.+)/visit/(?P.+)/directory/(?P.+)/ /browse/origin/(?P<origin_url>.+)/directory/(?P.+)/ /browse/origin/(?P<origin_url>.+)/directory/ /browse/origin/content/ /browse/origin/(?P<origin_url>.+)/visit/(?P.+)/content/(?P.+)/ /browse/origin/(?P<origin_url>.+)/content/(?P.+)/ /browse/origin/(?P<origin_url>.+)/content/ /browse/origin/log/ /browse/origin/(?P<origin_url>.+)/visit/(?P.+)/log/ /browse/origin/(?P<origin_url>.+)/log/ /browse/origin/branches/", view_name="browse-origin-branches /browse/origin/(?P<origin_url>.+)/visit/(?P.+)/branches/ /browse/origin/(?P<origin_url>.+)/branches/ /browse/origin/releases/ /browse/origin/(?P<origin_url>.+)/visit/(?P.+)/releases/ /browse/origin/(?P<origin_url>.+)/releases/
Migrated from D6430 (view on Phabricator)