Skip to content

Commit

Permalink
Append the baseUrl prefix for the API doc
Browse files Browse the repository at this point in the history
  • Loading branch information
vmcj committed Nov 16, 2024
1 parent 85257a7 commit cd74bb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/src/NelmioApiDocBundle/ExternalDocDescriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ public function describe(OpenApi $api): void
// Inject the correct server for the API docs
$request = $this->requestStack->getCurrentRequest();
$this->decorated->describe($api);
Util::merge($api->servers[0], ['url' => $request->getSchemeAndHttpHost(),], true);
Util::merge($api->servers[0], ['url' => $request->getSchemeAndHttpHost() . $request->getBaseUrl(),], true);
}
}

0 comments on commit cd74bb3

Please sign in to comment.