Skip to content

Commit

Permalink
fix(frontend): add missing page in sitemap
Browse files Browse the repository at this point in the history
  • Loading branch information
lionelB committed Jan 14, 2021
1 parent fa6b255 commit 6f11b6e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions targets/frontend/src/pages/api/sitemap.js
Expand Up @@ -24,10 +24,10 @@ export default async function Sitemap(req, res) {
`/mentions-legales`,
`/politique-confidentialite`,
`/integration`,
`/modeles-de-courriers`,
`/outils`,
`/glossaire`,
]
.map((path) => `${baseUrl}${path}`)
.map(toUrlEntry);
].map((path) => toUrlEntry(`${baseUrl}${path}`));

const glossaryTerms = await getGlossary();
const glossaryPages = glossaryTerms.map(({ slug, modified }) =>
Expand Down Expand Up @@ -98,7 +98,7 @@ query countDocuments($sources: [String!]!) {
async function getDocuments() {
const gqlListDocument = `query listDocuments($sources: [String!]!, $offset: Int = 0, $limit: Int = 50) {
documents(
order_by: {cdtn_id: asc},
order_by: [{source: asc}, {slug: asc}],
limit: $limit
offset: $offset
where: {source: {_in: $sources}, is_available: {_eq: true}, is_published: {_eq: true} }) {
Expand All @@ -111,6 +111,7 @@ async function getDocuments() {

const sources = [
SOURCES.CDT,
SOURCES.CCN,
SOURCES.CONTRIBUTIONS,
SOURCES.EDITORIAL_CONTENT,
SOURCES.LETTERS,
Expand Down

0 comments on commit 6f11b6e

Please sign in to comment.