Skip to content
Prev Previous commit
Next Next commit
resolve comments
  • Loading branch information
jomcarvajal committed Nov 3, 2025
commit 8a4b83d4f98a4da33f0266e2d0bf0708103dab1f
3 changes: 1 addition & 2 deletions src/app/content/hooks/receiveContent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ const hookBody: ActionHookBody<typeof receivePage | typeof locationChange> = (se
const loadingBook = select.loadingBook(state);
const loadingPage = select.loadingPage(state);
const currentPath = pathname(state);
const queryParamsObj = query(state);
const queryParams = queryString.stringify(queryParamsObj);
const queryParams = queryString.stringify(query(state));
const queryParamsWithPrefix = queryParams ? `?${queryParams}` : '';

if (!page || !book) {
Expand Down
3 changes: 2 additions & 1 deletion src/app/content/utils/seoUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ export const createTitle = (page: Page, book: Book, intl: IntlShape, params?: st
: null;
if (modalTitle) {
return `${modalTitle} | OpenStax`;
} else if (nodeNumber) {
}
if (nodeNumber) {
return `${nodeNumber} ${title}`;
}
return getParentPrefix(node.parent, intl) + title;
Expand Down