Skip to content

Commit

Permalink
CCS-4004-view-published-assembly-fix (#489)
Browse files Browse the repository at this point in the history
  • Loading branch information
grantsydney authored Dec 15, 2020
1 parent d7b40fa commit 0bebe95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pantheon-bundle/frontend/src/app/contentDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ class ContentDisplay extends Component<any, IModuleDisplayState | IAssemblyDispl
for (const productVersion of productChild.__children__) {
if (productVersion[Fields.JCR_UUID] === uuid) {
this.setState({ productValue: product.name, versionValue: productVersion.name, productUrlFragment: product.urlFragment, versionUrlFragment: productVersion.urlFragment })
const isGuideOrTopic = this.isAssembly ? '/guide' : '/topic/'
const isGuideOrTopic = this.isAssembly ? '/guide/' : '/topic/'
const url = this.state.portalHostUrl + '/documentation/'+this.state.locale.toLocaleLowerCase()+'/' + this.state.productUrlFragment + '/' + this.state.versionUrlFragment + isGuideOrTopic + this.state.variantUUID
console.log("Constructed url="+url)
if(this.state.productUrlFragment!==""){
Expand Down

0 comments on commit 0bebe95

Please sign in to comment.