DSpace 7.5 Localhost in citation_pdf_urL

52 views
Skip to first unread message

pierre...@bibl.ulaval.ca

unread,
Jun 5, 2023, 11:21:36 AM6/5/23
to DSpace Technical Support
Bonjour, 

We have noticed that DSpace 7.5 is generating a Google Scholar Meta tag citation_pdf_url containing a localhost adress instead of our official IR address (https://corpus.ulaval.ca).

Looking at the source code of the page, you should see the HTML TAG: <meta name="citation_pdf_url" content="http://localhost:4000/bitstreams/[...]

We are not sure where to change this. Is it a configuration? Where should we made the change so that DSpace cease to use localhost url for this tag?

Thank you very much for you help!

Best,
Pierre

Tim Donohue

unread,
Jun 5, 2023, 11:53:46 AM6/5/23
to pierre...@bibl.ulaval.ca, DSpace Technical Support
Hi Pierre,

It's likely that your proxy isn't passing though the repository URL information to the frontend.  This can be done by using X-Forwarded-* HTTP headers.

For instance:
X-Forwarded-Host corpus.ulaval.ca
X-Forwarded-Proto https

Try setting those headers in your proxy (Apache or similar).  That should solve the issue, as DSpace will attempt to detect your deployed URL use it for those "citation_pdf_url" tags.

(I've realized this doesn't seem to be clearly documented, so I'll add some notes about X-Forwarded headers to our SEO guidelines at: https://wiki.lyrasis.org/display/DSDOC7x/Search+Engine+Optimization)

Tim

From: dspac...@googlegroups.com <dspac...@googlegroups.com> on behalf of pierre...@bibl.ulaval.ca <pierre...@bibl.ulaval.ca>
Sent: Monday, June 5, 2023 10:21 AM
To: DSpace Technical Support <dspac...@googlegroups.com>
Subject: [dspace-tech] DSpace 7.5 Localhost in citation_pdf_urL
 
--
All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
---
You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/09f60b4a-9495-4998-81cd-ff7dc7c6350dn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages