Skip to content

Commit 2db56e1

Browse files
committed
SL-1257: adjust the breadcrumbs so the user could return to the registration page
1 parent d1cb813 commit 2db56e1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

omod/src/main/webapp/pages/children/children.gsp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
import groovy.json.JsonOutput
88
99
def patientDashboardLink = ui.pageLink("coreapps", "clinicianfacing/patient")
10+
def breadcrumbMiddle = """ '${ returnUrl }' """ ?: """
11+
'${ui.pageLink("pihcore", "router/programDashboard", ["patientId": patient.id])}'
12+
"""
1013
%>
1114
<style>
1215
.date-column {
@@ -87,7 +90,7 @@ ${ ui.includeFragment("coreapps", "patientHeader", [ patient: patient ]) }
8790
<script type="text/javascript">
8891
var breadcrumbs = [
8992
{ icon: "icon-home", link: '/' + OPENMRS_CONTEXT_PATH + '/index.htm' },
90-
{ label: "${ ui.escapeJs(ui.format(patient)) }" , link: '${ui.pageLink("pihcore", "router/programDashboard", ["patientId": patient.id])}'},
93+
{ label: "${ ui.escapeJs(ui.format(patient)) }" , link: ${ breadcrumbMiddle } },
9194
{ label: "${ ui.message("registration.patient.children.label") }" , link: '${ui.pageLink("pihcore", "children/children", ["patientId": patient.id])}'}
9295
];
9396

0 commit comments

Comments
 (0)