There are several parts to this, I suppose, but the main issue is that PR does not play well with internationalization.

I am moving a large site into Drupal where I have hundreds of links to documents that are coded like href="/sites/mysite.org/files/file_ID_1234". I've done the work to match the "file_ID_1234" up with the original filename (this came out of a different CMS that used the ID to reference the file through a table), such as "MyPowerPoint.ppt".

So I want PR to allow me to create a redirect (to support bookmarks out there that still use the old file_ID system and to most easily re-use the HTML I'm importing) that allows the "/sites/mysite.org/files/file_ID_1234" link to take me to "/sites/mysite.org/files/MyPowerPoint.ppt" instead.

Indeed, I have this working EXCEPT for the fact that I also need internationalization to work as well, and PR forces my new link to be "/en/sites/mysite.org/files/MyPowerPoint.ppt". The problem, of course, being that there is no such dir as "/en/sites/...."

I've tried combining this with URL aliases, but to no avail.

A way to optionally turn off the forced "en/" prefix would be great.

Comments

HorsePunchKid’s picture

Can you check out this patch and associated discussion? Therein may lie your solution.

HorsePunchKid’s picture

Status: Active » Closed (duplicate)

This should be solved now. I've tested with the i18n module. You're now responsible for putting the language code into the URL, which I think is the simplest and most flexible way to make this work. I'm marking this as a duplicate of #158261 since it appears to be fundamentally the same issue.