DEFRA / waste-carriers-frontend

Waste Carrier Registrations Frontend Code
Other
1 stars 1 forks source link

Fix new-reg redirect to go to AD privacy policy #330

Closed Cruikshanks closed 4 years ago

Cruikshanks commented 4 years ago

https://eaflood.atlassian.net/browse/RUBY-1118

Spotted whilst working on ensuring our new feature toggle functionality is working as expected. Currently the 'Create new registration' link redirects straight to the /start page in the back-office.

AD new registrations should go via the AD privacy policy in the back-office. By doing so we'll also fix another issue. If the new_registration feature is not enabled then clicking the link causes a server error. The back-office AD privacy policy page has been updated to handle how to start a new-registration based on the new_registration feature. By fixing the link in the backend to go to the back-office AD privacy policy we also fix this issue.