EPrints Technical Mailing List Archive

Message: #08111


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

Re: [EP-tech] Current page URL


In answer to my own question :  $repository->current_url();

Thanks John!

Alan

-----Original Message-----
From: eprints-tech-bounces@ecs.soton.ac.uk <eprints-tech-bounces@ecs.soton.ac.uk> On Behalf Of Alan.Stiles via Eprints-tech
Sent: 04 February 2020 12:09
To: eprints-tech@ecs.soton.ac.uk
Subject: [EP-tech] Current page URL

CAUTION: This mail comes from outside the University. Please consider this before opening attachments, clicking links, or acting on the content.

EPrints 3.3.15+
Is there a way to get the current page URL to include as e.g. a dynamic pin in the template?  I'd much rather not rely on Javascript to populate it once the page has loaded.

Current relative path would be fine too.

Cheers,

Alan
-- The Open University is incorporated by Royal Charter (RC 000391), an exempt charity in England & Wales and a charity registered in Scotland (SC 038302). The Open University is authorised and regulated by the Financial Conduct Authority in relation to its secondary activity of credit broking.

*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C91ec0f3998cc47ba379408d7a97ac9b3%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=KqqFpek0Annb%2FGX24FxngvRM3UQAM2NMn21hFeNalZI%3D&amp;reserved=0
*** EPrints community wiki: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C91ec0f3998cc47ba379408d7a97ac9b3%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=XSLKuikzdlXfFhM%2B30JZEv4TWTVx%2B45yekao3TWKmtY%3D&amp;reserved=0