diff --git a/modules/instruments/php/module.class.inc b/modules/instruments/php/module.class.inc index b09a42f2e38..bec36ecf563 100644 --- a/modules/instruments/php/module.class.inc +++ b/modules/instruments/php/module.class.inc @@ -50,6 +50,12 @@ class Module extends \Module public function handle(ServerRequestInterface $request) : ResponseInterface { $resp = parent::handle($request); + + /* Bypass for js files. */ + if ($this->hasPrefix('/js/', $request->getURI())) { + return $resp; + } + if ($resp->getStatusCode() != 404) { return $resp; } diff --git a/webpack.config.js b/webpack.config.js index 869394fc742..3e9af4db2be 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -320,7 +320,7 @@ const lorisModules = { imaging_qc: ['imagingQCIndex'], server_processes_manager: ['server_processes_managerIndex'], statistics: ['WidgetIndex'], - instruments: ['CandidateInstrumentList'], + instruments: ['CandidateInstrumentList', 'ControlpanelDeleteInstrumentData'], candidate_profile: ['CandidateInfo'], api_docs: ['swagger-ui_custom'], };