Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1342580

Summary: Overriding Documentation link in Web Console has no effect
Product: OpenShift Container Platform Reporter: Brendan Mchugh <bmchugh>
Component: Management ConsoleAssignee: Jessica Forrester <jforrest>
Status: CLOSED DUPLICATE QA Contact: Yadan Pei <yapei>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.2.0CC: aos-bugs, jokerman, mmccomas
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-03 15:30:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Brendan Mchugh 2016-06-03 14:59:19 UTC
Description of problem:

Trying to override the Documentation link in the Nav Bar of the Web Console has no effect.

Using the following guide:
https://docs.openshift.com/enterprise/3.2/install_config/web_console_customization.html#changing-links-to-documentation

Trying to modify the following window.OPENSHIFT_CONSTANTS

"default":"https://docs.openshift.org/latest/welcome/index.html"


Version-Release number of selected component (if applicable):
openshift v3.2.0.44
kubernetes v1.2.0-36-g4a3f9c5
etcd 2.2.5


How reproducible:
Always


Steps to Reproduce:
1. Create help-links.js with following content:

window.OPENSHIFT_CONSTANTS.HELP['get_started_cli'] = "https://example.com/doc1.html";
window.OPENSHIFT_CONSTANTS.HELP['default'] = "https://example.com/doc2.html";

2. Edit /etc/origin/master/master-config.yaml adding extensionScripts section under assetConfig 

assetConfig:
  extensionScripts:
    - /path/to/help-links.js


3. Restart with systemctl restart atomic-openshift-master.service
4. Login to Web Console
5. Click on Help button, hover over documentation


Actual results:
Documentation link still points to "https://docs.openshift.org/latest/welcome/index.html"

Expected results:
Documentation link should point to the URL set in extensionScripts section "https://example.com/doc2.html"


Additional info:
Is the URL in the WebConsole/Help/Documentation link coming from the window.OPENSHIFT_CONSTANTS?

If not, how to override?

Comment 1 Jessica Forrester 2016-06-03 15:30:03 UTC
There was a bug with the link in the help dropdown, it had a hardcoded URL, the fix is targeted for 3.2.1.  All other doc links in the console should be correctly customized.

*** This bug has been marked as a duplicate of bug 1336526 ***