Probably best to prefix URLs with $request->getBaseUrl() since OJS may be installed in a sub directory.