Requesting data using specific query pattern

I’m trying to integrate OHIF-viewer v3 into another react app.
I need to configure OHIF viewer so that it request data from server like this:

http://192.168.3.12:8080/wado?studyUID=1.3.46.670589.11.70423.5.0.7060.2023082617190685068&seriesUID=1.3.46.670589.11.70423.5.0.5424.2023082617274609559&objectUID=1.3.46.670589.11.70423.5.0.5424.2023082617281200570&requestType=WADO&contentType=application/dicom&transferSyntax=*

or without “contentType” and “transferSyntax” params to retrieve JPEG content.

I’ve tried adding “onConfiguration” to config file.

onConfiguration: (dicomWebConfig, options) => {
          const { query } = options;
          const StudyUID = query.get('StudyInstanceUIDs');
          const SeriesUID = query.get('SeriesUID');
          const objectUID = query.get('objectUID');
          const pathUrl = `http://192.168.3.12:8080/wado?studyUID=${StudyUID}&seriesUID=${SeriesUID}&objectUID=${objectUID}&requestType=WADO&contentType=application/dicom&transferSyntax=*`;
          return {
            ...dicomWebConfig,
            wadoRoot: pathUrl,
            qidoRoot: pathUrl,
            wadoUri: pathUrl,
            wadoUriRoot: pathUrl,
          };
        }

but viewer automatically add these search parameters to the end of the URI:

/studies?limit=101&offset=0&fuzzymatching=false&includefield=00081030%2C00080060&StudyInstanceUID=1.3.46.670589.11.70423.5.0.7060.2023082617190685068

Also, there are these errors printed on console:

Uncaught (in promise) Error: Invalid study URL

Error: RetrieveMetadataLoader failed

How can I config OHIF to request resources according to server api?
I’m quite new to both DICOM and OHIF viewer.