We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3823eeb commit 9809a47Copy full SHA for 9809a47
apps/book-server/src/services/PageService/index.mts
@@ -275,7 +275,8 @@ export class PageService implements Service {
275
}
276
277
if (typeof rest_input.title === 'string') {
278
- Object.assign(updateInput, { title: rest_input.title })
+ const newUrlSlug = `/${this.utils.escapeForUrl(rest_input.title)}-${page.code}`
279
+ Object.assign(updateInput, { title: rest_input.title, url_slug: newUrlSlug })
280
281
282
if (typeof rest_input.is_deleted === 'boolean') {
0 commit comments