Ticket #1372 (closed defect: fixed)

Opened 8 months ago

Last modified 7 months ago

The More link in the RHC Related Content block is not formatted correctly

Reported by: rcave Owned by: rcave
Priority: critical Milestone: 0.9.3_rc3
Component: ambra Version: 0.9.3
Keywords: Cc:

Description

The More link in the RHC Related Content block is not formatted correctly. The links appear as (notice dx.plos.org):

 http://journal-site.plos.org/article/http%3A%2F%2Fdx.plos.org%2F10.1371%2Fjournal.pcbi.0030043

Instead of  http://journal-site.plos.org/article/related/info%3Adoi%2F10.1371%2Fjournal.pone.0002229

This appears to affect only:

Change History

Changed 8 months ago by stoomey

  • status changed from new to assigned

Changed 8 months ago by stoomey

After consulting with Joe it seems like this is due to url encoding in the output of
dojo.byId('relatedArticleURL').value
from within init_article_rhc.ftl. However, in PLoS ONE, where the More link isn't generated with JS, this variable:
<a href="${relatedArticleURL}">
results in a correctly formed URL.

Where is this defined?
<@s.url id="relatedArticleURL" namespace="/article" action="fetchRelatedArticle" articleURI="${articleURI}"/>
Is it url encoded?

Changed 8 months ago by rcave

  • owner changed from stoomey to ssterling

Changed 8 months ago by ssterling

(In [7808]) On the Article Metrics Tab, editing either rating will now refresh both ratings displays (i.e., on the RHC and in the main body of the page). Also checked to make sure that Joe's fix to the Related Content "More" link in the RHC works for all article tabs for all journals.

Addresses #1372 Addresses #1375

Changed 8 months ago by rcave

  • owner changed from ssterling to rcave
  • status changed from assigned to verify
  • resolution set to fixed

Changed 7 months ago by rcave

  • status changed from verify to closed
Note: See TracTickets for help on using tickets.