Skip to content

Commit

Permalink
fix(billing): fixed redirection to hosting mx plan resiliation page
Browse files Browse the repository at this point in the history
ref: MANAGER-16668

Signed-off-by: Jacques Larique <[email protected]>
  • Loading branch information
Jacques Larique committed Jan 8, 2025
1 parent 072dcb9 commit 5318a34
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,15 @@ export default /* @ngInject */ ($stateProvider, $urlRouterProvider) => {
email: /* @ngInject */ (BillingAutoRenew, name) =>
BillingAutoRenew.getEmailInfos(name),
isHosting: /* @ngInject */ (email) => /hosting/.test(email.offer),
redirection: /* @ngInject */ ($q, isHosting, email) => {
redirection: /* @ngInject */ ($q, coreURLBuilder, isHosting, email) => {
if (isHosting) {
window.location.href = `/web/#/hosting/${encodeURIComponent(
email.domain,
)}/terminateEmail?tab=GENERAL_INFORMATIONS`;
window.location.href = coreURLBuilder.buildURL(
'web',
`#/hosting/${encodeURIComponent(email.domain)}/terminateEmail`,
{
tab: 'GENERAL_INFORMATIONS',
},
);
return $q.defer().promise;
}
return $q.when();
Expand Down

0 comments on commit 5318a34

Please sign in to comment.