From a764c30ecfdff6f6510a6125d5ee246f4bef01c2 Mon Sep 17 00:00:00 2001 From: LiHuashen <854410664@qq.com> Date: Fri, 21 Dec 2018 17:10:26 +0800 Subject: [PATCH] test for router --- docs/_redirects | 5 ++++- docs/index.html | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/_redirects b/docs/_redirects index 50a46335..ebb755ae 100644 --- a/docs/_redirects +++ b/docs/_redirects @@ -1 +1,4 @@ -/* /index.html 200 \ No newline at end of file +/* /index.html 200 + +# Redirect default Netlify subdomain to primary domain +http://m5-docs.netlify.com/* http://docs.m5stack.com/:splat 301! \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index 6d0109b3..d0c47743 100644 --- a/docs/index.html +++ b/docs/index.html @@ -45,7 +45,7 @@ // '/ja/': 'https://docs.m5stack.com/ja/', // '/': '/' // }, - // routerMode: 'history', // default: 'hash' + routerMode: 'history', // default: 'hash' // /#/ -> / // if (/\/#\//.test(location.href)) { // location.href = location.href.replace('/#/', '/')