Skip to content

Commit d49ca41

Browse files
Fix anchor for error message URL (#97)
**Requirements** - [ ] I have added test coverage for new or changed functionality - [x] I have followed the repository's [pull request submission guidelines](../blob/master/CONTRIBUTING.md#submitting-pull-requests) - [ ] I have validated my changes against all supported platform versions **Related issues** I have not created an issue, but let me know if you want me to. **Describe the solution you've provided** I'm fixing the anchor link reported in the console. There was a [change](launchdarkly/LaunchDarkly-Docs@60a05c9#diff-26abf752171a35488030dbdd7fdc6713bd491d480b47d226ca912226ef970bbfR238) last year in the (now deprecated) docs and it looks like the anchor hasn't been updated in the SDK. This change will fix the URL: Before: [Link](https://docs.launchdarkly.com/sdk/client-side/javascript#initializing-the-client) After: [Link](https://docs.launchdarkly.com/sdk/client-side/javascript#initialize-the-client) Nothing ground breaking here. **Describe alternatives you've considered** An alternative would be to update the docs to change the anchor link back. I'm not sure if the new docs are public to suggest that change, or if that's what your team wants. There are other places that reference the old anchor link including a [DataDog](https://docs.datadoghq.com/real_user_monitoring/guide/setup-feature-flag-data-collection/?tab=browser#launchdarkly-integration) page about integrating with LaunchDarkly ([code](https://github.com/DataDog/documentation/blob/099a849767b047283496097ac209f43882f49d6e/content/en/real_user_monitoring/guide/setup-feature-flag-data-collection.md?plain=1#L384)). **Additional context** - I didn't add a test or update one, it doesn't appear these messages are tested so I left it as is. - I did not validate my changes against all supported platform versions. I would hope it's safe.
1 parent 5177f0b commit d49ca41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/messages.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const clientInitialized = function() {
1515
};
1616

1717
const docLink =
18-
' Please see https://docs.launchdarkly.com/sdk/client-side/javascript#initializing-the-client for instructions on SDK initialization.';
18+
' Please see https://docs.launchdarkly.com/sdk/client-side/javascript#initialize-the-client for instructions on SDK initialization.';
1919

2020
const clientNotReady = function() {
2121
return 'LaunchDarkly client is not ready';

0 commit comments

Comments
 (0)