Skip to content

Commit

Permalink
Added comment to highlight url difference for commitments v2
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisJWoodcock committed Jun 16, 2021
1 parent 1589f2b commit 4b83735
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,9 @@ private static string CommitmentAction(UrlHelper helper, string baseUrl, string
var hashedAccountId = helper.RequestContext.RouteData.Values[ControllerConstants.AccountHashedIdRouteKeyName];
var commitmentPath = hashedAccountId == null ? $"{path}" : $"{hashedAccountId}/{path}";

// unlike the rest of the services within MA - commitments v2 does not have 'accounts/' in its urls
return Action(baseUrl, commitmentPath);
}
}

private static string Action(string baseUrl, string path)
{
Expand Down

0 comments on commit 4b83735

Please sign in to comment.