Skip to content

[FIX] sms_marketing: ensure SMS links use the correct domain#622

Open
imanie383 wants to merge 1 commit intoVauxoo:16.0-ircfrom
vauxoo-dev:16.0-sms-i3401-imanie383
Open

[FIX] sms_marketing: ensure SMS links use the correct domain#622
imanie383 wants to merge 1 commit intoVauxoo:16.0-ircfrom
vauxoo-dev:16.0-sms-i3401-imanie383

Conversation

@imanie383
Copy link

@imanie383 imanie383 commented Mar 14, 2025

Before this commit, the generated SMS link did not include the SMS code because it was created using the domain of the current website(second) instead of the intended one. This happened because the comparison was made against the web.base.url parameter instead of the current website domain.

With this fix, the system correctly uses the current website domain for both link generation and comparison, ensuring the SMS code is applied.

Steps to reproduce:

  • Go to SMS Marketing.
  • Create a new mailing.mailing with Concat Recipients.
  • Set up two websites with different domains.
  • Configure web.base.url using the same domain as the first website.
  • Log in to the second website.
  • Send the mailing.mailing.

CUrrent behavior:

  • The SMS link does not include the SMS code.

Expected behavior:

  • The SMS link should include the SMS code.

Closes odoo#201641
Fixes odoo#201641

Screenshots

image
image


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

Before this commit, the generated SMS link did not include the
SMS code because it was created using the domain of the second
website instead of the intended one. This happened because the
comparison was made against the `web.base.url` parameter instead
of the current website domain.

With this fix, the system correctly uses the current website domain
for both link generation and comparison, ensuring the correct domain
is applied.

Steps to reproduce:
- Go to **SMS Marketing**.
- Create a new `mailing.mailing` with **Concat Recipients**.
- Set up **two websites** with different domains.
- Configure `web.base.url` using the same domain as the **first website**.
- Log in to the **second website**.
- Send the `mailing.mailing`.

Expected behavior:
- The SMS link should include the correct domain and the SMS code.

odoo#201641
@imanie383 imanie383 force-pushed the 16.0-sms-i3401-imanie383 branch from 8f8310b to f81866f Compare March 14, 2025 02:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant