Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[OPS] Email tag {$authorOrcidUrl} returns invalid URL when used as a link #122

Closed
alexxxmendonca opened this issue Apr 17, 2020 · 6 comments
Closed
Assignees

Comments

@alexxxmendonca
Copy link

@alexxxmendonca alexxxmendonca commented Apr 17, 2020

Describe the bug
The tag {$authorOrcidUrl} generated a dynamic link that enables authors to connect their ORCID iD via the API. In order to make a more user-friendly link, instead of using the tag itself, the template suggests to add it to a link (ie: within an a href).

However, the platform is automatically adding a ../management/settings/ before the {$authorOrcidUrl} tag, which invalidates the URL.

To Reproduce
Steps to reproduce the behavior:

  1. Check your ORCID email templates
  2. Check the link to connect ORCID ID (usually the one followed by the ORCID icon)
  3. See how it points to ../management/settings/{$authorOrcidUrl}, which is not a valid URL

What application are you using?
Open Preprint Systems 3.2.0.1

Additional information
Workflow Settings

@ajnyga
Copy link

@ajnyga ajnyga commented Apr 17, 2020

@withanage do you want to look at this?

@withanage
Copy link
Member

@withanage withanage commented Apr 17, 2020

@ajnyga
Haven't tested the ops with orcid, therefore will take some time. If it is ok, just assign me.

@withanage withanage transferred this issue from pkp/pkp-lib Apr 17, 2020
@librariam
Copy link

@librariam librariam commented Nov 6, 2020

+1 from PKP|PS, same issue is reported by a journal on OJS 3.2.0.2 with ORCID plugin v1.1.2.3

Also related reports in this Forum thread

Editing to add that this is a new behaviour in OJS/OPS 3.2. In the same template in 3.1.2 nothing gets added in the URL before {$authorOrcidUrl} and it's therefore valid.

@withanage
Copy link
Member

@withanage withanage commented Nov 9, 2020

Hi @librariam @alexxxmendonca ,

I have tested the OPS for this problem yesterday.

I have looked into the problem, as you have described and it i a general problem in the template mechanism that always the current url gets added tp any tiny mce links (both in OPS and OJS 3.2 +)

Problem is not only orcid specific , other emails we did not have the links, therefore it was not visible.

I will talk with Nate about this and come back to you soon.

@withanage
Copy link
Member

@withanage withanage commented Nov 15, 2020

@alexxxmendonca @librariam

As assumed this was a general problem for URL editions in -The wysiwig editor. I have added a patch for that and update you as soon it is in the main OJS/OMP code.

@NateWr
Copy link
Member

@NateWr NateWr commented Nov 17, 2020

This was fixed as part of pkp/pkp-lib#6344. The fix will go out with 3.3 and 3.2.1-3.

@NateWr NateWr closed this Nov 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants