-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Description
Where is the bug/mistake?
A number of docs links fail to redirect due to case sensitivity. For example:
https://docs.n8n.io/integrations/builtin/credentials/apiTemplateIo
https://docs.n8n.io/integrations/builtin/credentials/azureEntraCognitiveServicesOAuth2Api
https://docs.n8n.io/integrations/builtin/credentials/wooCommerce
https://docs.n8n.io/integrations/builtin/credentials/pagerDuty
https://docs.n8n.io/integrations/builtin/credentials/profitWell
https://docs.n8n.io/integrations/builtin/credentials/payPal
https://docs.n8n.io/integrations/builtin/credentials/helpScout
https://docs.n8n.io/integrations/builtin/credentials/homeAssistant
https://docs.n8n.io/integrations/builtin/credentials/linkedIn
https://docs.n8n.io/integrations/builtin/credentials/serviceNow
https://docs.n8n.io/integrations/builtin/credentials/koBoToolbox
https://docs.n8n.io/integrations/builtin/credentials/openAi
https://docs.n8n.io/integrations/builtin/credentials/activeCampaign
The all lower-case version of the URL seems to work in the cases I've tried, but the n8n app references the camel case URL when creating a new credential, for example:
(directs to https://docs.n8n.io/integrations/builtin/credentials/activeCampaign/?utm_source=n8n_app&utm_medium=credential_settings&utm_campaign=create_new_credentials_modal which is a 404)
Can you suggest a fix?
Judging based off the timeframe, perhaps this issue arose during the switch from Netlify to Cloudlfare Pages (referencing this commit). If that's the case, maybe the easiest fix would be to add a transform rule to make routes case insensitive (as shown here).
Additional context
It appears that there was a Github Action test script in the base n8n repository to catch invalid links like these over on that side. That test seems to have been disabled:

Additionally, for a reason beyond my understanding the script also modifies part of the URL to be lowercase, which seems to make invalid links pass the test, so this probably wouldn't have caught it either as it stands 😅