Project:Textimage
Version:6.x-2.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

From #339174: Change image creation path and format handling by igor.stirbu:

I have an issue with redirecting the user with drupal_goto()
when used in conjunction with i18n module. So, if the generated
image has the path sites/default/files/textimage/1/1227654379.png
then the redirected URL will generate a 404:
http://www.example.com/en/sites/default/files/textimage/1/1227654379.png

Comments

#1

Status:active» closed (fixed)

Appears to be a non-issue.

#2

Status:closed (fixed)» active

This appears when language setting is path prefix or path prefix with language fallback and the user is visiting the site in a language that has a defined path prefix. The path prefix is then used on all URLs, including textimage src's, which renders a 404 when a URL like en/sites/default/files/textimage/1/1227654379.png is visited. I'm guessing the easy solution would be to simply strip any src's of the language path prefix when one is used.

#3

Thanks krasmussen,

Hopefully I can figure out the issue for you.

Note for self if I don't look into this straight away: I'm thinking that the issue may be related to the redirect from the old url based method to the actual file, which would explain why I was unable to reproduce the issue in the first place, was stuck in my 'do things the right way' behaviour.