When I have purchased a file product and go to the download page, the link it gives me is:

http://example.com/~crosenthal/drupal5/%3Cem%3E/~crosenthal/drupal5/?q=s...

That should be:

http://example.com/~crosenthal/drupal5?q=store/myfiles/1/download&file=c...

The reason is because locale translation is being performed on the entire html fragment, and the theme is marking up the url.

The fix is to localize just the text "download", not the entire HTML fragment.

Patch is attached.

Comments

neclimdul’s picture

The alternative is to use @file-download-uri to bypass the checkplain. However since we are only translating a single word this is worth considering. I'd probably create a new create_link function though to avoid confusion. We can keep the create_url function as it is still useful as a wrapper for url.

chip’s picture

StatusFileSize
new2.54 KB

Does the attached work better for you?

chip’s picture

Status: Active » Needs review

can somebody review the patch attached to my previous comment?

brmassa’s picture

Status: Needs review » Fixed

Guys,

its fixed already.

regards,

massa

Anonymous’s picture

Status: Fixed » Closed (fixed)