Skip to content
This repository has been archived by the owner on Nov 20, 2024. It is now read-only.

Removing urls from conf to remove navigation to find a supplier and investment support directory as now in great-cms #1064

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 1 addition & 45 deletions conf/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,51 +30,7 @@

# Investment Support Directory, Trade and Invest
urlpatterns = [
re_path(
r'^international/investment-support-directory/',
include(
'investment_support_directory.urls',
namespace='investment-support-directory',
)
),
re_path(
r'^international/trade/investment-support-directory/search/',
QuerystringRedirectView.as_view(url='/international/investment-support-directory/')
),
re_path(
r'^international/trade/',
include(
'find_a_supplier.urls',
namespace='find-a-supplier',
)
),
re_path(
r'^international/content/trade/$',
QuerystringRedirectView.as_view(pattern_name='find-a-supplier:trade-home'),
name='content-trade-home-redirect'
),
re_path(
r'^international/content/trade/contact/$',
QuerystringRedirectView.as_view(pattern_name='find-a-supplier:industry-contact'),
name='content-trade-contact-redirect'
),
re_path(
r'^international/trade/incoming/$',
QuerystringRedirectView.as_view(pattern_name='find-a-supplier:trade-home'),
name='trade-incoming-homepage'
),
# This entry handles all URLs in find_a_supplier/redirects.py
re_path(
r'^international/trade/incoming/(?P<path>[\w\-/]*)/$',
find_a_supplier.views.LegacySupplierURLRedirectView.as_view(),
name='trade-incoming'
),
# This entry handles all URLs in invest/redirects.py
re_path(
r'^international/invest/incoming/(?P<path>[\w\-/]*)/$',
invest.views.LegacyInvestURLRedirectView.as_view(),
name='invest-incoming'
),

]

if settings.FEATURE_FLAGS['HOW_TO_SET_UP_REDIRECT_ON']:
Expand Down