Skip to main content

Is it possible to intercept the querystring parameters passed to the workbook url within an extension?

I've created a very simple extesion to set a default value to some parameters, but I would like the behaviour of the external querystring parameters to continue to work normally.

 

Thanks for your help.

4 risposte
  1. 9 feb 2019, 18:07

    Hi Enrico,

     

    I looked into this a bit more and you actually can get the URL and its parameters. My auto-response was to say "no" because generally that information is considered unsafe to share across origins. However, in your case, you really just want the current URL of the browser, which you can get regardless of origin using document.referrer. Take a look at this post for more information but you should be able to accomplish this, a quick test worked for me! Also, no the parameters would be set before the extension initialized so you would not be able to capture their change event.

     

    Take care,

    Keshia

0/9000