Don't place fragment links if deep linking is disabled

This commit is contained in:
Kyle Shockey
2017-07-14 01:50:49 -07:00
parent 73845907a3
commit 556e40e6d4
2 changed files with 17 additions and 4 deletions

View File

@@ -33,7 +33,15 @@ export default class Operations extends React.Component {
const Collapse = getComponent("Collapse")
let showSummary = layoutSelectors.showSummary()
let { docExpansion, displayOperationId, displayRequestDuration, maxDisplayedTags } = getConfigs()
let {
docExpansion,
displayOperationId,
displayRequestDuration,
maxDisplayedTags,
deepLinking
} = getConfigs()
const isDeepLinkingEnabled = deepLinking && deepLinking !== "false"
let filter = layoutSelectors.currentFilter()
@@ -69,7 +77,7 @@ export default class Operations extends React.Component {
<a
className="nostyle"
onClick={(e) => e.preventDefault()}
href={`#/${tag}`}>
href={ isDeepLinkingEnabled ? `#/${tag}` : ""}>
<span>{tag}</span>
</a>
{ !tagDescription ? null :