Skip to content

Commit 60f7643

Browse files
committed
fixed unnecessary slash in custom urls
1 parent 7acdbfa commit 60f7643

File tree

5 files changed

+32
-32
lines changed

5 files changed

+32
-32
lines changed

dist/server/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ const service = ({ strapi }) => ({
374374
});
375375
});
376376
const customSitemapEntries = customURLs.map((customURL) => ({
377-
url: `${baseURL}/${customURL.slug}`,
377+
url: `${baseURL}${customURL.slug}`,
378378
priority: customURL.priority,
379379
frequency: customURL.frequency
380380
}));

dist/server/index.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ const service = ({ strapi }) => ({
373373
});
374374
});
375375
const customSitemapEntries = customURLs.map((customURL) => ({
376-
url: `${baseURL}/${customURL.slug}`,
376+
url: `${baseURL}${customURL.slug}`,
377377
priority: customURL.priority,
378378
frequency: customURL.frequency
379379
}));

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "1.0.2",
2+
"version": "1.0.3",
33
"keywords": [],
44
"type": "commonjs",
55
"exports": {

server/src/services/service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const service = ({strapi}: { strapi: Core.Strapi }) => ({
4949
});
5050

5151
const customSitemapEntries = customURLs.map((customURL) => ({
52-
url: `${baseURL}/${customURL.slug}`,
52+
url: `${baseURL}${customURL.slug}`,
5353
priority: customURL.priority,
5454
frequency: customURL.frequency,
5555
}));

yarn.lock

+28-28
Original file line numberDiff line numberDiff line change
@@ -5,34 +5,6 @@ __metadata:
55
version: 8
66
cacheKey: 10c0
77

8-
"@DigitalMoonrise-UG/strapi-5-sitemap-plugin@workspace:.":
9-
version: 0.0.0-use.local
10-
resolution: "@DigitalMoonrise-UG/strapi-5-sitemap-plugin@workspace:."
11-
dependencies:
12-
"@strapi/design-system": "npm:^2.0.0-rc.14"
13-
"@strapi/icons": "npm:^2.0.0-rc.14"
14-
"@strapi/sdk-plugin": "npm:^5.3.0"
15-
"@strapi/strapi": "npm:^5.7.0"
16-
"@strapi/typescript-utils": "npm:^5.7.0"
17-
"@types/react": "npm:^19.0.4"
18-
"@types/react-dom": "npm:^19.0.2"
19-
prettier: "npm:^3.4.2"
20-
react: "npm:^18.3.1"
21-
react-dom: "npm:^18.3.1"
22-
react-intl: "npm:^7.1.0"
23-
react-router-dom: "npm:^6.28.1"
24-
styled-components: "npm:^6.1.14"
25-
typescript: "npm:^5.7.3"
26-
peerDependencies:
27-
"@strapi/sdk-plugin": ^5.3.0
28-
"@strapi/strapi": ^5.7.0
29-
react: ^18.3.1
30-
react-dom: ^18.3.1
31-
react-router-dom: ^6.28.1
32-
styled-components: ^6.1.14
33-
languageName: unknown
34-
linkType: soft
35-
368
"@babel/code-frame@npm:^7.0.0, @babel/code-frame@npm:^7.10.4, @babel/code-frame@npm:^7.16.7, @babel/code-frame@npm:^7.25.9, @babel/code-frame@npm:^7.26.2":
379
version: 7.26.2
3810
resolution: "@babel/code-frame@npm:7.26.2"
@@ -13263,6 +13235,34 @@ __metadata:
1326313235
languageName: node
1326413236
linkType: hard
1326513237

13238+
"strapi-5-sitemap-plugin@workspace:.":
13239+
version: 0.0.0-use.local
13240+
resolution: "strapi-5-sitemap-plugin@workspace:."
13241+
dependencies:
13242+
"@strapi/design-system": "npm:^2.0.0-rc.14"
13243+
"@strapi/icons": "npm:^2.0.0-rc.14"
13244+
"@strapi/sdk-plugin": "npm:^5.3.0"
13245+
"@strapi/strapi": "npm:^5.7.0"
13246+
"@strapi/typescript-utils": "npm:^5.7.0"
13247+
"@types/react": "npm:^19.0.4"
13248+
"@types/react-dom": "npm:^19.0.2"
13249+
prettier: "npm:^3.4.2"
13250+
react: "npm:^18.3.1"
13251+
react-dom: "npm:^18.3.1"
13252+
react-intl: "npm:^7.1.0"
13253+
react-router-dom: "npm:^6.28.1"
13254+
styled-components: "npm:^6.1.14"
13255+
typescript: "npm:^5.7.3"
13256+
peerDependencies:
13257+
"@strapi/sdk-plugin": ^5.3.0
13258+
"@strapi/strapi": ^5.7.0
13259+
react: ^18.3.1
13260+
react-dom: ^18.3.1
13261+
react-router-dom: ^6.28.1
13262+
styled-components: ^6.1.14
13263+
languageName: unknown
13264+
linkType: soft
13265+
1326613266
"stream-chain@npm:2.2.5, stream-chain@npm:^2.2.5":
1326713267
version: 2.2.5
1326813268
resolution: "stream-chain@npm:2.2.5"

0 commit comments

Comments
 (0)