Jump to content
  • 0

MediaWiki magic word not working (CanonicalURL)


KaupnaKane

Question

I am trying to get Google Translate to work within my mediawiki website.

I am using the following in square brackets in a template (the example below is for Spanish:

[https://translate.google.com/translate?sl=en&tl=es&hl=es&u={{canonicalurle:{{FULLPAGENAMEE}}}}&client=webapp {{#language:es}}]]

But the full page name is not returned when the link is clicked. Instead it eliminates the first part of the URL, i.e. everything from .com and prior As a result, Google returns an error that it cannot translate the page... which is not surprising since the full link to the page is missing

Any idea what I am missing?

Thank you!

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.