Jump to content

How to get current URL in global footer

Recommended Posts

Hi all,

I would like to add a link to Google translate in page footer.

To do so, I have to set

  • IN as the input page language (2 letters country code)
  • OUT as the output page language (2 letters country code)
  • URL as the URL of the page Google will translate

in the link bellow:


Using informations from this page, I tried to add this on line 3:

	{{if( isset( \IPS\Request::i()->url ) )}}
		<li><a href='https://translate.google.com/translate?sl=en&tl=ru&u={{ print \IPS\Request::i()->url(); }}'>русский</a></li>

But it doesn't work.

Can someone please help me?

Edited by Webmaster Scr
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...