Skip to content

Commit

Permalink
UHM-8309: prepend web app name to the returnUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
cioan committed Feb 3, 2025
1 parent 262e3a2 commit e5b6439
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/js/components/shared/BreadCrumb/BreadCrumb.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ class BreadCrumb extends Component {
familyName = patientHeaderDetail.person.personName.familyName;
}
let outputBreadcrumb;
const contextPath = window.location.href.split('/')[3];
const url = localStorage.getItem('returnUrl');
const returnUrl = `/${contextPath}/${url}`;

const homePageBreadcrumb = (
<span>
Expand Down Expand Up @@ -91,7 +94,7 @@ class BreadCrumb extends Component {
break;

case '/labresults': {

Check failure on line 96 in app/js/components/shared/BreadCrumb/BreadCrumb.jsx

View workflow job for this annotation

GitHub Actions / build (14.x)

Block must not be padded by blank lines
const returnUrl = localStorage.getItem('returnUrl');

outputBreadcrumb = (
<span>
<a href={returnUrl}>
Expand Down Expand Up @@ -120,7 +123,6 @@ class BreadCrumb extends Component {
if (history.location.state) {
trendDisplay = history.location.state.display;
}
const returnUrl = localStorage.getItem('returnUrl');
outputBreadcrumb = (
<span>
<a href={returnUrl}>
Expand Down

0 comments on commit e5b6439

Please sign in to comment.