Skip to content

Commit cd74bb3

Browse files
committed
Append the baseUrl prefix for the API doc
1 parent 85257a7 commit cd74bb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webapp/src/NelmioApiDocBundle/ExternalDocDescriber.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ public function describe(OpenApi $api): void
2424
// Inject the correct server for the API docs
2525
$request = $this->requestStack->getCurrentRequest();
2626
$this->decorated->describe($api);
27-
Util::merge($api->servers[0], ['url' => $request->getSchemeAndHttpHost(),], true);
27+
Util::merge($api->servers[0], ['url' => $request->getSchemeAndHttpHost() . $request->getBaseUrl(),], true);
2828
}
2929
}

0 commit comments

Comments
 (0)