Closed (fixed)
Project:
Ubercart
Version:
7.x-3.x-dev
Component:
Cart/checkout
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Feb 2012 at 08:47 UTC
Updated:
6 May 2012 at 20:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
longwaveDo you have a link to a site that demonstrates this problem, or can you provide some more details about the URL that you came from, the URL that is redirect to, and the URL that you expect?
Comment #2
epawel commentedThe problem is caused by $_SESSION['uc_cart_last_url'] =request_path() in uc_cart.module.
request_path() includes path prefix language code (you can see it in database table sessions) and that is why language prefix is duplicated in path.
I fixed it temporarliy in very ugly way : substr(request_path(), 3); (my language prefix is always 2 letters)
I hope it will help somebody.
Comment #3
longwaveComment #4
longwaveFixing title
Comment #5
fretje commentedSee also #1466372: 404 Page not found when Add to cart redirect is set to <none>
Comment #6
longwaveFrom a quick search of the issue queues, there are many similar issues with i18n and double prefixed paths in other modules.
A reasonably robust approach seems to be in this patch: http://drupal.org/files/issues/path_redirect-language-prefix-249432.patch
(from http://drupal.org/node/249432#comment-1215450)
Comment #7
longwavecurrent_path() seems to work better than request_path().
Comment #8
longwaveCommitted #7