vue.js - VuePress 没有使用 frontmatter-redirection 插件正确地从旧链接重定向到新链接
问题描述
版本详情
- Vuepress : ^1.8.2
- vuepress-plugin-redirect-frontmatter : ^1.0.0
问题
在 frontmatter 中添加了 redirectFrom: urls 以添加对旧链接的支持以重定向到新链接,但是它在重定向时因appendChild
错误而中断
样本前沿
---
permalink: /codes/2011/link-shortening-script/
redirectFrom: /2011/06/27/Link-Shortening-Script/
---
配置.js
plugins: [
[
'redirect-frontmatter'
]
]
期待
- https://rohansakhale.com/2011/06/27/Link-Shortening-Script/ - 旧链接
- https://rohansakhale.com/codes/2011/link-shortening-script/ - 新链接
更新
I thought it would generate the new page, however it managed on JS routing side the redirection part.
However, after redirection the page doesn't load and breaks
解决方案
推荐阅读
- flutter - 设计具有多个页面的应用程序,该页面具有不同的应用程序栏和单个抽屉
- git - git mv 和变化和相似性指数
- ios - Swift Firebase 更新旧数据 - 实时数据库触发器
- kubernetes - 默认后端 - 使用 dns 时从 nginx-controller 返回 404
- swift - NSObject 可解码相同的值
- php - 如何在浏览器中使用 artisan 命令并检查错误
- reactjs - ComponentDidMount() 未触发
- docker - Docker的错误:未定义的符号:php_json_decode_ex in Unknown on line 0
- python - 如何从配置文件动态提供函数参数默认值?
- ios - Ionic v3 从 PLIST 中删除特定键