My favorites
▼
|
Sign in
substruct
Open-source Ruby on Rails E-Commerce
Project Home
Downloads
Wiki
Issues
Source
READ-ONLY: This project has been
archived
. For more information see
this post
.
Search
Search within:
All issues
Open issues
New issues
Issues to verify
for
Advanced search
Search tips
Subscriptions
Issue
40
attachment: paypal_return_link.diff
(752 bytes)
1
2
3
4
5
6
7
8
9
10
11
12
Index: plugins/substruct/app/views/store/_paypal_cart.rhtml
===================================================================
--- plugins/substruct/app/views/store/_paypal_cart.rhtml (revision 43)
+++ plugins/substruct/app/views/store/_paypal_cart.rhtml (working copy)
@@ -1,6 +1,6 @@
<input type="hidden" name="business" value="<%= @cc_login %>"/>
<input type="hidden" name="upload" value="1"/>
-<input type="hidden" name="return" value="http://<%= request.env["HTTP_HOST"] %>/store/finish_order"/>
+<input type="hidden" name="return" value="http://<%= request.env["HTTP_X_FORWARDED_HOST"] || request.env["HTTP_HOST"] %>/store/finish_order"/>
<input type="hidden" name="invoice" value="<%= cart.order_number %>"/>
<% if cart.is_discounted? %>
Powered by
Google Project Hosting