diff options
author | James E. Blair <jeblair@redhat.com> | 2020-02-03 15:44:29 -0800 |
---|---|---|
committer | Tobias Henkel <tobias.henkel@bmw.de> | 2020-02-19 09:01:02 +0100 |
commit | f330fc67fd112f74ff90a468e2ef3214cb3ae5bd (patch) | |
tree | 7862d67224d697e6605a0aeb139f28351325d582 /web/src/actions | |
parent | 00578d721c6dd761f29021c0d0ba6078c3764a30 (diff) | |
download | zuul-f330fc67fd112f74ff90a468e2ef3214cb3ae5bd.tar.gz |
web: link to index.html if index_links is set
If the deployer has indicated that they would prefer the dashboard
to link to index.html files rather than bare directories, do so.
This is in aid of object storage systems where index.html is not
automatically returned for directories.
Change-Id: Iacbc016396f9e6681dd6c945224c5f63af24c5df
Diffstat (limited to 'web/src/actions')
-rw-r--r-- | web/src/actions/build.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/web/src/actions/build.js b/web/src/actions/build.js index afb881377..6898f84d8 100644 --- a/web/src/actions/build.js +++ b/web/src/actions/build.js @@ -235,7 +235,8 @@ const receiveBuildManifest = (buildId, manifest) => { return { type: BUILD_MANIFEST_SUCCESS, buildId: buildId, - manifest: {tree: manifest.tree, index: index}, + manifest: {tree: manifest.tree, index: index, + index_links: manifest.index_links}, receivedAt: Date.now() } } |