Broken url for local storage command handler examples page

On this page:

Which then leads to;

https://gojs.net/latest/samples/LocalStorageCommandHandler.js

Which is a broken url.

Not sure if I should’ve contacted support or post it here, for future issues regarding API and extensions documentation I’ll refer to what is prefered.

All the while you have both TS and JS source code on your github.

and

Sorry, as you might guess from the github URL, the correct URL is: https://gojs.net/latest/extensionsJSM/LocalStorageCommandHandler.js

We will fix this

fret not, just so you know! Thanks.

Edit: Now thinking about it, I don’t know how realistic it is to achieve this, considering these urls are most definitely automatically generated, but I’d say why not link to the github file directly? It’s a lot more user friendly.

It’s not a bad idea, but every version of the library links to that version of the file, so for example:

https://gojs.net/2.2.2/extensions/LocalStorageCommandHandler.html

links to

https://gojs.net/2.2.2/extensions/LocalStorageCommandHandler.js

So that older users of the library can get version-appropriate extension code. Doing that with Github would be trickier.

Also, for this particular feature, the functionality has been built into the standard CommandHandler in version 3.1, so that extension will no longer be needed.

no kidding? I just took GoJS/extensionsJSM/LocalStorageCommandHandler.ts at master · NorthwoodsSoftware/GoJS · GitHub and made it work to our likings, the only issue I ran into is that the the extension doesn’t hold Node and Link templates in mind.

Oh, well. Ha-ha

You can start using the 3.1 Beta today if you wish:
gojs.net/beta

npm i gojs@beta