Viewers icon indicating copy to clipboard operation
Viewers copied to clipboard

Standalone routing does not work

Open kongzhonglei opened this issue 7 years ago • 5 comments

my english is very bad,Please accept my full apologies. standalone can use in v2? like http://localhost:5000/?url=http://xxx.xxx/xxx.json

kongzhonglei avatar Jul 29 '19 13:07 kongzhonglei

@swederik do you have an example URL for custom JSON you can provide?

@kongzhonglei, I believe it's supported; but the documentation on it is sparse.

dannyrb avatar Jul 29 '19 14:07 dannyrb

Hmm looks like there is a bug with the URL query string parsing.

Here is the code: https://github.com/OHIF/Viewers/blob/f7ba7621efb284980c0cf0b86767002cad18dd86/src/routes/StandaloneRouting.js#L13

The idea is that something like this should work: http://viewer.ohif.org/viewer?url=https://s3.eu-central-1.amazonaws.com/ohif-viewer/JSON/PTCTStudy.json (but right now it doesn't)

swederik avatar Jul 29 '19 14:07 swederik

if can,please tell me the full url. thank you

kongzhonglei avatar Jul 29 '19 14:07 kongzhonglei

Just fixed this. This URL should work soon: http://viewer.ohif.org/viewer?url=https://s3.eu-central-1.amazonaws.com/ohif-viewer/JSON/PTCTStudy.json

You have to wait for the tests etc to run on master first though, maybe wait 10-15 minutes before testing this. If you are impatient you can use https://deploy-preview-732--ohif.netlify.com/demo/viewer?url=https://s3.eu-central-1.amazonaws.com/ohif-viewer/sampleDICOM.json

swederik avatar Jul 29 '19 15:07 swederik

:tada: This issue has been resolved in version 0.19.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

ohif-bot avatar Jul 29 '19 15:07 ohif-bot