fix: redirect /research to /rlog

This commit is contained in:
Hossein Mehrabi 2023-07-18 09:43:47 +03:30
parent d4cc49efdd
commit 6282270ce9
No known key found for this signature in database
GPG Key ID: 45C04964191AFAA1
1 changed files with 1 additions and 0 deletions

View File

@ -64,6 +64,7 @@ const config = {
[
'@docusaurus/plugin-client-redirects',
{
redirects: [{ from: '/research', to: '/rlog' }],
createRedirects(existingPath) {
return existingPath.startsWith('/rlog') && existingPath !== '/rlog'
? [existingPath.replace('/rlog', '')]