Skip to content

Commit f2a399a

Browse files
author
OpenShift Bot
authored
Merge pull request #558 from spadgett/cli-extension-download
Merged by openshift-bot
2 parents fa38110 + 00e75fe commit f2a399a

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

app/views/command-line.html

+5-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ <h1 id="cli">Command Line Tools</h1>
2424
<div ng-if="cliDownloadURLPresent">
2525
<label class="cli-download-label">Download <code>oc</code>:</label>
2626
<div ng-repeat="(key, value) in cliDownloadURL">
27-
<a href="{{value}}" class="cli-download-link">
27+
<!--
28+
Use target="_self" so that the Angular router doesn't rewrite the link when the download is served using an extension.
29+
See https://docs.angularjs.org/guide/$location#html-link-rewriting
30+
-->
31+
<a ng-href="{{value}}" class="cli-download-link" target="_self">
2832
{{key}}
2933
<i class="fa fa-external-link"></i>
3034
</a>

dist/scripts/templates.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -3583,7 +3583,8 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
35833583
"<div ng-if=\"cliDownloadURLPresent\">\n" +
35843584
"<label class=\"cli-download-label\">Download <code>oc</code>:</label>\n" +
35853585
"<div ng-repeat=\"(key, value) in cliDownloadURL\">\n" +
3586-
"<a href=\"{{value}}\" class=\"cli-download-link\">\n" +
3586+
"\n" +
3587+
"<a ng-href=\"{{value}}\" class=\"cli-download-link\" target=\"_self\">\n" +
35873588
"{{key}}\n" +
35883589
"<i class=\"fa fa-external-link\"></i>\n" +
35893590
"</a>\n" +

0 commit comments

Comments
 (0)