Email footer discussion threads -> Reply to this comment at: You don't currently have access to that stage of the workflow

OJS 3.4.0.8

When a new discussion is created with the authors, the author receives an email with the footer corresponding to the localeKey:

msgid ‘emails.footer.unsubscribe.discussion’
msgstr
‘Reply to this comment at #{$submissionId} {$authorsShort} or ’
unsubscribe from emails sent by {$contextName}.’

the link that the ‘Reply to this comment at’ points to is being taken from the $submissionUrl variable (…/workflow/access/…) and if the author clicks on the link the application denies access: ‘You don’t currently have access to that stage of the workflow. Maybe it should be that, as this is a new discussion with the authors, the link should be taken from $authorSubmissionUrl (…/authorDashboard/submission/…)

Thank you

Sorry this is the localeKey:
msgid "emails.footer.unsubscribe.discussion"
msgstr ""
"Reply to this comment at <a href="{$submissionUrl}">#{$submissionId} {$authorsShort}</a> or <a href="{$unsubscribeUrl}">unsubscribe</a> from emails sent by <a href="{$contextUrl}">{$contextName}</a>."