Skip to content

Access urlParams #173

@dipterix

Description

@dipterix

Is it possible to save the urlParams into the WASM apps so the application can tweak its behaviors according to the URL params? Happy to propose a PR

I was able to hack the shinylive source code to achieve this: https://github.com/rave-ieeg/rave-wasm/blob/a4d4b20a632d202242138cf459f287aff7256b44/compile.r#L466-L477

Here is an Example: the same app has different initializations according to the URL params

Original app: https://rave.wiki/rave-wasm/nsd-ieeg-viewer/index.html

Image

App with urlParams:

https://rave.wiki/rave-wasm/nsd-ieeg-viewer/index.html?controllers={%22Display%20Data%22:%22Destrieux_label_text%22}&electrode_path=https%3A%2F%2Fraw.githubusercontent.com%2Frave-ieeg%2Frave-wasm%2Frefs%2Fheads%2Fmain%2Fassets%2Fapp-data%2Fbids-examples%2FNSD-electrodes%2Fsub-06_ses-ieeg01_space-MNI152NLin2009_electrodes.tsv&space=MNI152

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions