When trying to paste an url in Linkit in the Search for content field I get a 'Page not found' on a multilingual site when the url has a language prefix, the internal url is correct. Pasting in an url for the default language (without prefix) the internal url get's the status ok if the path is found.

The editors on the site like to paste in full urls, so Linkit changes in to node/[id].
Example url: http://example.com/en/contact-page where 'en' is the language prefix.

When converting the path to an internal Drupal path the module doesn't take the language prefix in account.

Patch follows.

Comments

anneke_vde created an issue. See original summary.

anneke_vde’s picture

Status: Active » Needs review
StatusFileSize
new1.18 KB
anon’s picture

Status: Needs review » Needs work

Thanks for the patch.

We need a simpletest for this one too.