Skip to content

Commit

Permalink
Merge pull request #42 from openimis/feature/OP-759
Browse files Browse the repository at this point in the history
OP-759: fixed double 'front' in url of 'new contract from policyholder page
  • Loading branch information
delcroip authored May 6, 2022
2 parents 487b87b + 4b7bcb3 commit 43bf0c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/PolicyHolderContractsTab.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 43bf0c1

Please sign in to comment.