Skip to content

Comments

fix: added url parsing from data attributes#62

Merged
Lullabyq merged 4 commits intosendsay-ru:masterfrom
skippikp:fix/1886-parse-domain-from-data-attribute
Feb 9, 2026
Merged

fix: added url parsing from data attributes#62
Lullabyq merged 4 commits intosendsay-ru:masterfrom
skippikp:fix/1886-parse-domain-from-data-attribute

Conversation

@skippikp
Copy link
Contributor

@skippikp skippikp commented Feb 5, 2026

Проблема с отображением встроенной формы

fibery

@netlify
Copy link

netlify bot commented Feb 5, 2026

Deploy Preview for sendsay-forms ready!

Name Link
🔨 Latest commit 4ae51c1
🔍 Latest deploy log https://app.netlify.com/projects/sendsay-forms/deploys/6985de2133a4080008a30db1
😎 Deploy Preview https://deploy-preview-62--sendsay-forms.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

const clickTrigger = new ClickTrigger();
clickTrigger.watch((attr) => {
if (attr === `${this.login}/${this.formId}`) {
if (attr.includes(`${this.login}/${this.formId}`)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

а зачем это изменение,
просто я представляю что у какого-то клиента есть 2 встроенные формы одна с id 1 а другая с 11

и проверка attr.includes(x_2212313/1) выдаст true для обоих дивов

я кончено не знаю что делает ConditionWatcher но мне страшно от таких изменений

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

согласен, заменил на регулярку


try {
// eslint-disable-next-line compat/compat
url = new URL(formId).toString();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

а у нас в formId есть полноценный урл или почему это является фиксом проблемы?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

да, у некоторых пользователей в урл формы подставляется их домен и мы в интерфейсе апки выводим его в дата атрибуте
Снимок экрана 2026-02-06 в 20 42 57

Copy link

@sendsay-cat sendsay-cat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested

@Lullabyq Lullabyq merged commit 3247d0f into sendsay-ru:master Feb 9, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants