apostrophecms / apostrophecms/apostrophe

Slug of a non direct child of home page is not beeing updated with the title field

Open
#4,047 3 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
4.6k
Forks
650
Avg merge
19h 21m
Merged PRs (30d)
23

Description

## To Reproduce

Take into account that this will happen when you create a page which is NOT a direct child of home page

1. Go to 'Manage Pages'
2. Click on 'New page'
3. Erase the whole title and start writting a new one
4. See that the slug is not been updated automatically with the new title
5. Try to update the slug manually, you won't be able to add a slash (/)

## Expected behavior
The slug is updated automatically when you change the title

## Describe the bug
![image](https://user-images.githubusercontent.com/18350276/219330063-1f817377-9ccf-48c3-b703-9eea55d1f80a.png)

## Video reproducing issue
[Slug bug creating new page.webm](https://user-images.githubusercontent.com/18350276/219330237-1486f7a6-ffaf-4529-9350-545ed47c4b99.webm)

## Details

**Version of Node.js:**
v16.19.0

**Server Operating System:**
Ubuntu 19.04

Contributor guide

Open the contributing guide

Research direction

Start in Manage Pages and reproduce the issue by creating a page that is not a direct child of the home page, then changing its title. Verify both automatic slug updates and manual slash entry; the work is done when the slug follows the new title and nested paths can be edited.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.