Skip to content

Commit 5d40367

Browse files
Storecode in url changed from default to all
Swagger was no longer working after changing the storecode from default to something else, because this file contained a hardcoded code. Changing it to all which is always availlable no matter which storeviews exist fixes this issue.
1 parent 81c6cce commit 5d40367

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Swagger/view/frontend/templates/swagger-ui

1 file changed

+1
-1
lines changed

app/code/Magento/Swagger/view/frontend/templates/swagger-ui/index.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
/** @var \Magento\Framework\View\Element\Template $block */
1616

17-
$schemaUrl = rtrim($block->getBaseUrl(), '/') . '/rest/default/schema?services=all';
17+
$schemaUrl = rtrim($block->getBaseUrl(), '/') . '/rest/all/schema?services=all';
1818
?>
1919

2020
<div id='header'>

0 commit comments

Comments
 (0)