To participate you must create an account on apostrophenow.org. If you have already done so, click Login.

Ticket #124 (closed defect: fixed)

Opened 2 years ago

Last modified 15 months ago

Editing a Page Title should change its slug and set up a redirect from the old slug to the new one

Reported by: geoffd Owned by: tboutell
Priority: major Milestone: 1.5
Component: Documentation Version: 1.0
Keywords: 1.5b Cc: boutell, rickybanister, johnnybenson, agilbert
Symfony version: 1.4

Description

Originally opened by Rick. Moved from previous ticket system:

Currently if you change the page title (by clicking on it in the breadcrumb, editing it, clicking save) it does not change the page slug. This could be confusing to users that don't realize. Also, if you change the page slug in the settings panel, it doesn't cascade to children.

We need to add a new semi-modal interface around the page title editor that gives people the option to make the slug automatically the new page title (slugified), or to keep the current slug. After that we need to offer them the option to cascade the slug change to all children.

In the setting panel, if someone changes the slug, we should also add that cascade option (a la the publish cascade thing you've been working on).


User clicks on the title to edit

a box appears around it

an edit slug interface with a checkbox to make the slug match the page title

see the drawing.

John will help you make the display of the slug automatically change when typing your new page title.

_

Error: Macro Image(slug.png) failed
Attachment 'ticket:124: slug.png' does not exist.

The default state of the slug matching checkbox is 'on'

When you uncheck the checkbox it assumes you want to edit the slug, toggling the edit mode on. When you click 'save' another option for cascading that change to all children appears.

[] cascade the new slug to all child pages

Attachments

slug.jpg Download (299.7 KB) - added by geoffd 2 years ago.

Change History

Changed 2 years ago by geoffd

in reply to: ↑ description   Changed 2 years ago by geoffd

Replying to geoffd:

Originally opened by Rick. Moved from previous ticket system:

Currently if you change the page title (by clicking on it in the breadcrumb, editing it, clicking save) it does not change the page slug. This could be confusing to users that don't realize. Also, if you change the page slug in the settings panel, it doesn't cascade to children.

We need to add a new semi-modal interface around the page title editor that gives people the option to make the slug automatically the new page title (slugified), or to keep the current slug. After that we need to offer them the option to cascade the slug change to all children.

In the setting panel, if someone changes the slug, we should also add that cascade option (a la the publish cascade thing you've been working on).




User clicks on the title to edit

a box appears around it

an edit slug interface with a checkbox to make the slug match the page title

see the drawing.

John will help you make the display of the slug automatically change when typing your new page title.

_



The default state of the slug matching checkbox is 'on'

When you uncheck the checkbox it assumes you want to edit the slug, toggling the edit mode on. When you click 'save' another option for cascading that change to all children appears.

[] cascade the new slug to all child pages

  Changed 2 years ago by geoffd


  Changed 2 years ago by boutell

See also #38

In my opinion, renaming should automatically change the slug and cascade the change, but also automatically set up redirects from old to new slugs in a redirects table. The redirects table is checked only by executeShow and only if it is about to 404, so slugs can be reclaimed for new pages.

This is simple and does what is expected and a bit more... "oh I would have asked for that if I knew it was even possible." I believe it's also a widely appreciated Drupal feature, I've heard rumors to that effect anyway.

  Changed 2 years ago by geoffd

  • owner changed from dordille to boutell
  • status changed from new to assigned
  • version set to 1.0
  • milestone set to 1.1

  Changed 21 months ago by boutell

  • milestone changed from 1.4 to 1.5

  Changed 18 months ago by rickybanister

  • summary changed from Improvments to renaming Page Slugs to Editing a Page Title should change its slug and set up a redirect from the old slug to the new one

  Changed 17 months ago by tboutell

  • owner changed from boutell to tboutell

  Changed 15 months ago by geoffd

  • keywords 1.5b added

  Changed 15 months ago by tboutell

  • status changed from assigned to closed
  • resolution set to fixed

This is working to the satisfaction of our clients, we've had no concerns about how renaming and automatic redirects work for quite a while. I'm closing this ticket, which describes our original, long-fulfilled wish for the redirect feature. Tickets on specific deficiencies can be opened if needed

Note: See TracTickets for help on using tickets.