提交 4d9838b2 编写于 作者: J Jason Park

redirect previously versioned scratch url to new one

上级 717be6eb
...@@ -22,6 +22,8 @@ const { ...@@ -22,6 +22,8 @@ const {
} = require('./utils'); } = require('./utils');
const { const {
getHashValue,
getParameterByName,
getPath getPath
} = require('./server/helpers'); } = require('./server/helpers');
...@@ -71,5 +73,13 @@ $(() => { ...@@ -71,5 +73,13 @@ $(() => {
app.setWikiList(data.wikis); app.setWikiList(data.wikis);
DOM.showWiki('Tracer'); DOM.showWiki('Tracer');
}) });
var v1LoadedScratch = getHashValue('scratch-paper');
var v2LoadedScratch = getParameterByName('scratch-paper');
var vLoadedScratch = v1LoadedScratch || v2LoadedScratch;
if (vLoadedScratch) {
window.location.href = window.location.protocol + '//' + window.location.host + window.location.pathname + '#path=scratch/' + vLoadedScratch;
}
}); });
\ No newline at end of file
此差异已折叠。
此差异已折叠。
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册