diff --git a/src/components/PolicyHolderContractsTab.js b/src/components/PolicyHolderContractsTab.js index ea85cd2..cbcfb9d 100644 --- a/src/components/PolicyHolderContractsTab.js +++ b/src/components/PolicyHolderContractsTab.js @@ -54,7 +54,8 @@ class RawPolicyHolderContractsTabPanel extends Component { onCreateButtonClick = () => { const { history, policyHolder } = this.props; - history.push(`${this.contractCreatePageUrl()}?${QUERY_STRING_POLICYHOLDER}=${decodeId(policyHolder.id)}`); + let urlContractPageFromPolicyHolder = `${this.contractCreatePageUrl()}?${QUERY_STRING_POLICYHOLDER}=${decodeId(policyHolder.id)}`; + history.push(urlContractPageFromPolicyHolder.replace('front/','')); }; onDoubleClick = (contract, newTab = false) => {