Closed Lalien closed 5 years ago
If you are using a controller that is inside of a module like this:
'urlManager' => [ 'enablePrettyUrl' => true, 'showScriptName' => false, 'rules' => [ [ 'class' => 'yii\rest\UrlRule', 'controller' => ['markets' => 'dynamic-pricing/market'], 'prefix' => '/api/', 'only' => [ 'GET /' => 'index', ] ] ], ],
You will receive this console error when trying to open the collapsed API box:
Uncaught Error: Syntax error, unrecognized expression: #Dynamic-pricing/market
It seems to be from there being a slash in the anchor link. Should we just replace these forward slashes with dashes? I tried that locally and it seems to fix the issue. The only problem is that I'm stuck with a title like "Dynamic-pricing-market" in the header.
If you are using a controller that is inside of a module like this:
You will receive this console error when trying to open the collapsed API box:
Uncaught Error: Syntax error, unrecognized expression: #Dynamic-pricing/market
It seems to be from there being a slash in the anchor link. Should we just replace these forward slashes with dashes? I tried that locally and it seems to fix the issue. The only problem is that I'm stuck with a title like "Dynamic-pricing-market" in the header.