Past appointment links in patient dashboard bug: v 6.1

thanks @Mark_Sarnov , will checkout this fix by @mdebussy

pushed up the fix, thank you for the report @Mark_Sarnov and for the fix @mdebussy ! will bring back to rel610 for the patch