Skip to content

Commit

Permalink
scandipwa/scandipwa#3780 - Use custom path for newsletter subscriptio…
Browse files Browse the repository at this point in the history
…n via email
  • Loading branch information
IrinaZhadzinets committed Jul 21, 2022
1 parent 562c1f3 commit c2c5549
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,5 @@ In order to allow Magento 2 to handle some routes in default manner (only server
specific routes to be accessed by adding RegExp to `src/app/etc/di.xml::ignoredURLs` arguments list.

So far there are 3 paths whitelisted out of the box:
- `/newsletter/subscriber/confirm` - subscribe to newsletter
- `/newsletter/subscriber/unsubscribe` - unsubscribe to newsletter
- `/customer/account/confirm/` - confirm e-mail (redirect to homepage in any case, modify according to your needs)
1 change: 0 additions & 1 deletion src/etc/di.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
<virtualType name="ScandiPWA\Router\Controller\ConfigurableRouter" type="ScandiPWA\Router\Controller\Router">
<arguments>
<argument name="ignoredURLs" xsi:type="array">
<item name="confirmSubscribeToNewsletter" xsi:type="string">^/newsletter/subscriber/confirm/.*</item>
<item name="unsubscribeFromNewslettter" xsi:type="string">^/newsletter/subscriber/unsubscribe/.*</item>
</argument>
</arguments>
Expand Down

0 comments on commit c2c5549

Please sign in to comment.