Skip to content

Commit 78398c6

Browse files
committed
remove "codebarista" from URLs
1 parent 848e8fd commit 78398c6

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This basically backports the native Shopware 6.6/6.7 implementation to Shopware
55

66
## What it does
77

8-
- Exposes a revocation form at `/codebarista/revocation` with the fields:
8+
- Exposes a revocation form at `/revocation` with the fields:
99
first name, last name, email, contract number and comment.
1010
- Sends two admin-editable mails on submission:
1111
- `codebarista_revocation_request.merchant` — to the shop operator.
@@ -19,7 +19,7 @@ placement, label and visibility. To add the link the same way imprint and
1919
privacy are exposed:
2020

2121
1. **Admin → Catalogues → Categories** — create a new category, e.g. "Revocation".
22-
2. Set **Type = Link**, then pick **External link** and enter the relative URL `/codebarista/revocation`. (Internal link only allows picking existing entities, which is why we use External link with a relative path — Shopware renders it verbatim, no domain needed.)
22+
2. Set **Type = Link**, then pick **External link** and enter the relative URL `/revocation`. (Internal link only allows picking existing entities, which is why we use External link with a relative path — Shopware renders it verbatim, no domain needed.)
2323
3. **Admin → Sales Channels → (your channel) → Service menu** — add the new category to the service-menu category tree.
2424
4. Save and clear caches. The link now appears in the footer service menu next to *Imprint* / *Privacy*.
2525

src/RevocationButtonController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function __construct(
5959
}
6060

6161
/**
62-
* @Route("/codebarista/revocation", name="frontend.codebarista.revocation.page", methods={"GET"})
62+
* @Route("/revocation", name="frontend.codebarista.revocation.page", methods={"GET"})
6363
*/
6464
public function page(Request $request, SalesChannelContext $context): Response
6565
{
@@ -73,7 +73,7 @@ public function page(Request $request, SalesChannelContext $context): Response
7373

7474
/**
7575
* @Route(
76-
* "/codebarista/revocation/request",
76+
* "/revocation/request",
7777
* name="frontend.codebarista.revocation.request",
7878
* defaults={"XmlHttpRequest"=true, "_captcha"=true},
7979
* methods={"POST"}

0 commit comments

Comments
 (0)