Skip to content

Commit a939f71

Browse files
committed
feat: add redirect from hrms to sql-hrms
1 parent 0d47554 commit a939f71

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

docusaurus.config.js

+11-4
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ const config = {
4848
plugins: [
4949
"plugin-image-zoom",
5050
[
51-
path.resolve(__dirname, 'plugins/generate-help-json'),
51+
path.resolve(__dirname, "plugins/generate-help-json"),
5252
{
53-
docsPath: 'docs-sqlacc/docs',
54-
outputPath: 'sqlacc'
53+
docsPath: "docs-sqlacc/docs",
54+
outputPath: "sqlacc",
5555
},
5656
],
5757
function aliasPlugin(context, options) {
@@ -80,11 +80,18 @@ const config = {
8080
[
8181
"@docusaurus/plugin-client-redirects",
8282
{
83+
redirects: [
84+
{
85+
from: "/sqlpay/category/hrms",
86+
to: "/sqlpay/category/sql-hrms",
87+
},
88+
],
8389
createRedirects(existingPath) {
8490
if (existingPath.includes("/sqlacc")) {
85-
// // Redirect from /X to /sqlacc/X
91+
// Redirect from /X to /sqlacc/X
8692
return existingPath.replace("/sqlacc", "");
8793
}
94+
8895
return undefined; // Return a falsy value: no redirect created
8996
},
9097
},

0 commit comments

Comments
 (0)