Updates version detail to use the correct backend download url route#4670
Conversation
|
@alainna I see @bibliotechy has added this to a branch on your fork, can you give us a green tick if you are happy with this solution for #4660 |
|
@mauromsl It fixes the immediate problem, but when @alainna approved the new version, it gave a new error That same issue does not happen on 1.7.4 without this commit merged in. |
Can you let me know the url path where this occurs? |
|
@ajrbyers |
|
Very odd indeed but I’ll try to patch it on Tuesday unless you can work it out. |
|
On the POST to but failing on the site_url template tag https://github.com/openlibhums/janeway/blob/v1.7.4/src/core/templatetags/fqdn.py#L33-L44 |
|
I think this might be a problem on your template. When passing the preprint id to repository_preprint it should use pending_update.preprint.pk rather than preprint.pk as preprint isn’t a variable that is available. |
|
@ajrbyers @bibliotechy thanks for the tip! Confirmed: updated the dev "accept/reject version" email templates to match stg and no longer received the error |
|
@mauromsl happy with this? |
Closes #4660