Skip to content

Commit

Permalink
feat: Level 1 SEO improvements (#3800)
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmadSunono authored Nov 25, 2024
1 parent b5f00ae commit 4704d3a
Show file tree
Hide file tree
Showing 25 changed files with 997 additions and 640 deletions.
1 change: 1 addition & 0 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"react-cookiebot": "^1.0.10",
"react-dom": "^18.2.0",
"react-ga4": "^2.1.0",
"react-helmet": "^6.1.0",
"react-i18next": "^12.0.0",
"react-responsive": "^9.0.0",
"react-router-dom": "^6.4.3",
Expand Down
2 changes: 1 addition & 1 deletion client/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>UNIVERSAL CREDIT SUPPORT</title>
<title>Universal Credit Support</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
Expand Down
6 changes: 3 additions & 3 deletions client/src/api-calls/steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ const editStep = async ({ id, form, options } = {}) => {
return { error: err };
}
};
const getStepById = async ({ id, lng, forPublic, options = {} } = {}) => {
const getStepBySlug = async ({ slug, lng, forPublic, options = {} } = {}) => {
try {
const { data } = await axios.get(`${STEPS_BASE}/${id}`, {
const { data } = await axios.get(`${STEPS_BASE}/${slug}`, {
params: { lng, forPublic },
});
return { data };
Expand Down Expand Up @@ -45,4 +45,4 @@ const updateSteps = async ({ options, data }) => {
}
};

export { getStepsContent, editStep, getStepById, updateSteps };
export { getStepsContent, editStep, getStepBySlug, updateSteps };
4 changes: 2 additions & 2 deletions client/src/constants/nav-routes.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const GENERAL = {
HOME: '/',
HOME_ORG: '/:uniqueSlug',
STEP_ORG: '/:uniqueSlug/steps/:id',
STEP_ORG: '/:uniqueSlug/steps/:slug',
UNAUTHORIZED: '/unauthorized',
FORGET_PASSWORD: '/admin/forget-password',
RESET_PASSWORD: '/admin/reset-password/:token',
Expand Down Expand Up @@ -33,7 +33,7 @@ const ADMIN = {

const SUPER_ADMIN = {
DASHBOARD: `${admin}/dashboard`,
EDIT_STEP: `${admin}/edit-step/:id`,
EDIT_STEP: `${admin}/edit-step/:slug`,
HOME: `${admin}/home`,
ADD_UPDATE_CONTENT: `${admin}/content`,
EDIT_LANDING_PAGE: `${admin}/edit-landing-page`,
Expand Down
Loading

0 comments on commit 4704d3a

Please sign in to comment.