Skip to content
Permalink
Browse files
fix next example redirection
  • Loading branch information
pissang committed Aug 13, 2020
1 parent 59bdd4c commit 3f3ad6fe0d11f14ce9ac208ae6e9bb74b2547ff4
Showing 1 changed file with 1 addition and 1 deletion.
@@ -11,5 +11,5 @@ html
var search = (location.search || '').replace('?', '');
var lang = navigator.language || navigator.userLanguage;
lang = lang.indexOf('zh') > -1 ? 'zh' : 'en';
location.href = '#{host}/examples/' + lang + '/#{redirectTo}'
location.href = '#{host}/next/examples/' + lang + '/#{redirectTo}'
+ (search ? '?' + search : '') + (hash ? '#' + hash : '');

0 comments on commit 3f3ad6f

Please sign in to comment.