Skip to content

Commit 6fda593

Browse files
committed
MAGETWO-45554: URLs in emails have sid parameter
- Added _nosid to email templates
1 parent 5923c2b commit 6fda593

20 files changed

+23
-23
lines changed

app/code/Magento/Customer/view/frontend/email/account_new.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
{{trans
2020
'To sign in to our site, use these credentials during checkout or on the <a href="%customer_url">My Account</a> page:'
2121

22-
customer_url=$this.getUrl($store,'customer/account/')
22+
customer_url=$this.getUrl($store,'customer/account/',[_nosid:1])
2323
|raw}}
2424
</p>
2525
<ul>
@@ -30,7 +30,7 @@
3030
{{trans
3131
'Forgot your account password? Click <a href="%reset_url">here</a> to reset it.'
3232

33-
reset_url="$this.getUrl($store,'customer/account/createPassword/',[_query:[id:$customer.id,token:$customer.rp_token]])"
33+
reset_url="$this.getUrl($store,'customer/account/createPassword/',[_query:[id:$customer.id,token:$customer.rp_token],_nosid:1])"
3434
|raw}}
3535
</p>
3636
<p>{{trans "When you sign in to your account, you will be able to:"}}</p>

app/code/Magento/Customer/view/frontend/email/account_new_confirmed.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
{{trans
1919
'To sign in to our site, use these credentials during checkout or on the <a href="%customer_url">My Account</a> page:'
2020

21-
customer_url=$this.getUrl($store,'customer/account/')
21+
customer_url=$this.getUrl($store,'customer/account/',[_nosid:1])
2222
|raw}}
2323
</p>
2424
<ul>
@@ -29,7 +29,7 @@
2929
{{trans
3030
'Forgot your account password? Click <a href="%reset_url">here</a> to reset it.'
3131

32-
reset_url="$this.getUrl($store,'customer/account/createPassword/',[_query:[id:$customer.id,token:$customer.rp_token]])"
32+
reset_url="$this.getUrl($store,'customer/account/createPassword/',[_query:[id:$customer.id,token:$customer.rp_token],_nosid:1])"
3333
|raw}}
3434
</p>
3535
<p>{{trans "When you sign in to your account, you will be able to:"}}</p>

app/code/Magento/Customer/view/frontend/email/account_new_no_password.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
{{trans
1919
'To sign in to our site and set a password, click on the <a href="%create_password_url">link</a>:'
2020

21-
create_password_url="$this.getUrl($store,'customer/account/createPassword/',[_query:[id:$customer.id,token:$customer.rp_token]])"
21+
create_password_url="$this.getUrl($store,'customer/account/createPassword/',[_query:[id:$customer.id,token:$customer.rp_token],_nosid:1])"
2222
|raw}}
2323
</p>
2424
<ul>

app/code/Magento/Sales/view/frontend/email/creditmemo_new.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<p class="greeting">{{trans "%name," name=$order.getCustomerName()}}</p>
2727
<p>
2828
{{trans "Thank you for your order from %store_name." store_name=$store.getFrontendName()}}
29-
{{trans 'You can check the status of your order by <a href="%account_url">logging into your account</a>.' account_url=$this.getUrl($store,'customer/account/') |raw}}
29+
{{trans 'You can check the status of your order by <a href="%account_url">logging into your account</a>.' account_url=$this.getUrl($store,'customer/account/',[_nosid:1]) |raw}}
3030
{{trans 'If you have questions about your order, you can email us at <a href="mailto:%store_email">%store_email</a>' store_email=$store_email |raw}}{{depend store_phone}} {{trans 'or call us at <a href="tel:%store_phone">%store_phone</a>' store_phone=$store_phone |raw}}{{/depend}}.
3131
{{depend store_hours}}
3232
{{trans 'Our hours are <span class="no-link">%store_hours</span>.' store_hours=$store_hours |raw}}

app/code/Magento/Sales/view/frontend/email/creditmemo_update.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
order_status=$order.getStatusLabel()
2828
|raw}}
2929
</p>
30-
<p>{{trans 'You can check the status of your order by <a href="%account_url">logging into your account</a>.' account_url=$this.getUrl($store,'customer/account/') |raw}}</p>
30+
<p>{{trans 'You can check the status of your order by <a href="%account_url">logging into your account</a>.' account_url=$this.getUrl($store,'customer/account/',[_nosid:1]) |raw}}</p>
3131
<p>
3232
{{trans 'If you have questions about your order, you can email us at <a href="mailto:%store_email">%store_email</a>' store_email=$store_email |raw}}{{depend store_phone}} {{trans 'or call us at <a href="tel:%store_phone">%store_phone</a>' store_phone=$store_phone |raw}}{{/depend}}.
3333
{{depend store_hours}}

app/code/Magento/Sales/view/frontend/email/invoice_new.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<p class="greeting">{{trans "%name," name=$order.getCustomerName()}}</p>
2727
<p>
2828
{{trans "Thank you for your order from %store_name." store_name=$store.getFrontendName()}}
29-
{{trans 'You can check the status of your order by <a href="%account_url">logging into your account</a>.' account_url=$this.getUrl($store,'customer/account/') |raw}}
29+
{{trans 'You can check the status of your order by <a href="%account_url">logging into your account</a>.' account_url=$this.getUrl($store,'customer/account/',[_nosid:1]) |raw}}
3030
{{trans 'If you have questions about your order, you can email us at <a href="mailto:%store_email">%store_email</a>' store_email=$store_email |raw}}{{depend store_phone}} {{trans 'or call us at <a href="tel:%store_phone">%store_phone</a>' store_phone=$store_phone |raw}}{{/depend}}.
3131
{{depend store_hours}}
3232
{{trans 'Our hours are <span class="no-link">%store_hours</span>.' store_hours=$store_hours |raw}}

app/code/Magento/Sales/view/frontend/email/invoice_update.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
order_status=$order.getStatusLabel()
2828
|raw}}
2929
</p>
30-
<p>{{trans 'You can check the status of your order by <a href="%account_url">logging into your account</a>.' account_url=$this.getUrl($store,'customer/account/') |raw}}</p>
30+
<p>{{trans 'You can check the status of your order by <a href="%account_url">logging into your account</a>.' account_url=$this.getUrl($store,'customer/account/',[_nosid:1]) |raw}}</p>
3131
<p>
3232
{{trans 'If you have questions about your order, you can email us at <a href="mailto:%store_email">%store_email</a>' store_email=$store_email |raw}}{{depend store_phone}} {{trans 'or call us at <a href="tel:%store_phone">%store_phone</a>' store_phone=$store_phone |raw}}{{/depend}}.
3333
{{depend store_hours}}

app/code/Magento/Sales/view/frontend/email/order_new.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<p>
2525
{{trans "Thank you for your order from %store_name." store_name=$store.getFrontendName()}}
2626
{{trans "Once your package ships we will send you a tracking number."}}
27-
{{trans 'You can check the status of your order by <a href="%account_url">logging into your account</a>.' account_url=$this.getUrl($store,'customer/account/') |raw}}
27+
{{trans 'You can check the status of your order by <a href="%account_url">logging into your account</a>.' account_url=$this.getUrl($store,'customer/account/',[_nosid:1]) |raw}}
2828
</p>
2929
<p>
3030
{{trans 'If you have questions about your order, you can email us at <a href="mailto:%store_email">%store_email</a>' store_email=$store_email |raw}}{{depend store_phone}} {{trans 'or call us at <a href="tel:%store_phone">%store_phone</a>' store_phone=$store_phone |raw}}{{/depend}}.

app/code/Magento/Sales/view/frontend/email/order_update.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
order_status=$order.getStatusLabel()
2727
|raw}}
2828
</p>
29-
<p>{{trans 'You can check the status of your order by <a href="%account_url">logging into your account</a>.' account_url=$this.getUrl($store,'customer/account/') |raw}}</p>
29+
<p>{{trans 'You can check the status of your order by <a href="%account_url">logging into your account</a>.' account_url=$this.getUrl($store,'customer/account/',[_nosid:1]) |raw}}</p>
3030
<p>
3131
{{trans 'If you have questions about your order, you can email us at <a href="mailto:%store_email">%store_email</a>' store_email=$store_email |raw}}{{depend store_phone}} {{trans 'or call us at <a href="tel:%store_phone">%store_phone</a>' store_phone=$store_phone |raw}}{{/depend}}.
3232
{{depend store_hours}}

app/code/Magento/Sales/view/frontend/email/shipment_new.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<p class="greeting">{{trans "%name," name=$order.getCustomerName()}}</p>
2828
<p>
2929
{{trans "Thank you for your order from %store_name." store_name=$store.getFrontendName()}}
30-
{{trans 'You can check the status of your order by <a href="%account_url">logging into your account</a>.' account_url=$this.getUrl($store,'customer/account/') |raw}}
30+
{{trans 'You can check the status of your order by <a href="%account_url">logging into your account</a>.' account_url=$this.getUrl($store,'customer/account/',[_nosid:1]) |raw}}
3131
{{trans 'If you have questions about your order, you can email us at <a href="mailto:%store_email">%store_email</a>' store_email=$store_email |raw}}{{depend store_phone}} {{trans 'or call us at <a href="tel:%store_phone">%store_phone</a>' store_phone=$store_phone |raw}}{{/depend}}.
3232
{{depend store_hours}}
3333
{{trans 'Our hours are <span class="no-link">%store_hours</span>.' store_hours=$store_hours |raw}}

0 commit comments

Comments
 (0)