|
@@ -7,9 +7,16 @@
|
|
|
</head>
|
|
|
<body>
|
|
|
<script>
|
|
|
- window.onload = function () {
|
|
|
- window.location.href ={{.T.transfer}}
|
|
|
+ window.onload = function () {
|
|
|
+ var transfer = {{.T.transfer}};
|
|
|
+ var targetPattern = /\/content\/(.+?)\./; // 匹配目标字符串
|
|
|
+ var match = transfer.match(targetPattern);
|
|
|
+ if (match && match[1]) {
|
|
|
+ window.location.href = transfer.replace(/\/content\/(.+?)\./, "/content/" + encodeURIComponent(match[1]) + ".");
|
|
|
+ return
|
|
|
}
|
|
|
+ window.location.href = {{.T.transfer}};
|
|
|
+ }
|
|
|
</script>
|
|
|
</body>
|
|
|
-</html>
|
|
|
+</html>
|