From 9016ba11bd2cf780327a5bf5c8d7704780343cd1 Mon Sep 17 00:00:00 2001 From: joecheuk Date: Tue, 17 Jul 2018 09:45:56 -0700 Subject: [PATCH] Fixed version redirect issues (#1798) * Added 2.0 upgrade instruction (#1769) * Added 2.0 upgrade instruction * Addressed PR comment * Updated broken urls * Added missing gsuite scope (#1772) * Update upgrade.md (#1774) * Added compute engine disk resource (#1779) * Update CSCC doc (#1778) * versioned 2.1 * revert branch to stable * Updated generated configuration files * update versioning (#1791) * Added space between comment and function * Updated app.yaml file * updates * updates * fixed version redirect issues --- _includes/site/layout/docs/tabs.html | 2 +- app.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/_includes/site/layout/docs/tabs.html b/_includes/site/layout/docs/tabs.html index 6e1dd87549..8fe0284173 100644 --- a/_includes/site/layout/docs/tabs.html +++ b/_includes/site/layout/docs/tabs.html @@ -50,7 +50,7 @@ possibly, and we do not want the trailing "index.html". {% endcomment %} {% assign doc_name = page.path | split:"/" | slice:2,999 | join:"/" %} - {% assign url_name = page.url | split:"/" | slice:3,999 | join:"/" | remove:"/index.html" %} + {% assign url_name = page.url | split:"/" | slice:3,999 | join:"/" | remove:"index.html" %} {% assign versions = site.data.doc_version_index[doc_name] | unshift:'latest' %} {% unless versions %} diff --git a/app.yaml b/app.yaml index cbf71f1c53..c1456dd7d0 100644 --- a/app.yaml +++ b/app.yaml @@ -29,6 +29,6 @@ handlers: secure: always - url: /(.*) - static_files: www/\1/index.html - upload: www/(.*)/index.html + static_files: www/\1 + upload: www/(.*) secure: always