While migrating the webhook configuration to a TOML file, I found strange behaviour.
Before: subscribed via GraphQL with URI https://domain.com/shopify/webhook/ Everything is perfect. See slash at the end of URI
After: moved webhooks to TOML with this config
[webhooks]
api_version = "2024-07"
[[webhooks.subscriptions]]
topics = [
"shop/update",
"app/uninstalled",
"products/delete"
]
compliance_topics = [ "customers/redact", "customers/data_request", "shop/redact" ]
uri = "https://domain.com/shopify/webhook/"
Also with the same slash at the end.
After deploying, I started to see errors in the dev dashboard and instead of correct URI, webhooks went to https://domain.com/shopify/webhook without slash
I made two endpoints on my end to fix ongoing issue, but I don’t think webhooks should modify URI