RedirectUrl not working on the visit dashboard page

Hi,

I can’t get redirect urls to work on the visit dashboard page (/openmrs/coreapps/patientdashboard/patientDashboard.page?patientId=xxy&visitId=xyz). The patientId seems to be set, but visitId is not set.

Example: If I click on the ‘Visit Note’ link, I wind up with such a url - http://localhost:8080/openmrs/htmlformentryui/htmlform/enterHtmlFormWithStandardUi.page?patientId=93d337ee-74f3-4b3b-b998-1efb2c97ab58&visitId=c310bde4-8199-46ee-a891-f10adb615501&definitionUiResource=referenceapplication:htmlforms/simpleVisitNote.xml&returnUrl=/openmrs/coreapps/patientdashboard/patientDashboard.page?patientId=22511&visitId={{visit.id}} - notice the {{visit.id}}

Thanks

CC: @mogoodrich @darius @dkayiwa

Are you able to reproduce this here? qa-refapp.openmrs.org

Unfortunately I’m not able to reproduce

Could it be caused by some of your local changes or modules?

VisitId doesn’t recognize UUIDs only IDs. Coincidentally we need that as well in the current sprint and I will be fixing it today :slight_smile: We’ve been discussing it here https://github.com/openmrs/openmrs-module-coreapps/pull/70

Fixed in https://issues.openmrs.org/browse/RA-1323

Sorry, reading your issue again I realized it might be a different thing…

Yup. Slightly different. Somehow the visitId is not populated. Still don’t know where that’s done