Page with name "Create" is inaccessible #607

Closed
opened 2026-02-04 21:24:37 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @svarlamov on GitHub (Mar 20, 2018).

Originally assigned to: @ssddanbrown on GitHub.

For Bug Reports

  • BookStack Version: v0.20.0
Expected Behavior

The URL slug should be changed to /books/foo-book/page/create-1 so that it doesn't conflict with the /books/foo-book/page/create route for creating a new page

Current Behavior

Going to the page takes you into the page creation view and the page you created earlier is not accessible

Steps to Reproduce

Create a page with the name "create"

Originally created by @svarlamov on GitHub (Mar 20, 2018). Originally assigned to: @ssddanbrown on GitHub. ### For Bug Reports * BookStack Version: v0.20.0 ##### Expected Behavior The URL slug should be changed to `/books/foo-book/page/create-1` so that it doesn't conflict with the `/books/foo-book/page/create` route for creating a new page ##### Current Behavior Going to the page takes you into the page creation view and the page you created earlier is not accessible ##### Steps to Reproduce Create a page with the name "create"
OVERLORD added the 🐛 Bug label 2026-02-04 21:24:37 +03:00
Author
Owner

@svarlamov commented on GitHub (Mar 20, 2018):

For users who may happen to run into this on an earlier version/before a fix is created, you can manually update the slug. Here is what I used in MySQL:

select id from pages where name like "create";
update pages set slug="create-1" where id = {{ID FROM STMT ABOVE}};
@svarlamov commented on GitHub (Mar 20, 2018): For users who may happen to run into this on an earlier version/before a fix is created, you can manually update the slug. Here is what I used in MySQL: ```sql select id from pages where name like "create"; update pages set slug="create-1" where id = {{ID FROM STMT ABOVE}}; ```
Author
Owner

@ssddanbrown commented on GitHub (Mar 23, 2018):

Thanks for reporting @svarlamov . Instead of renaming pages in they conflict I think it'll be good to go through and update all app routes so they cannot conflict with page slugs. Marking for next release.

@ssddanbrown commented on GitHub (Mar 23, 2018): Thanks for reporting @svarlamov . Instead of renaming pages in they conflict I think it'll be good to go through and update all app routes so they cannot conflict with page slugs. Marking for next release.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#607