Path address simplification #1271

Closed
opened 2026-02-05 00:27:39 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @ististyle on GitHub (Jul 24, 2019).

When I create a page called "pagename" under the book called "bookname", the relative address becomes "./books/bookname/page/pagename". I'd like to simplify or customize this address like "./b/bookname/p/pagename". I hope that there will be new env items. Here is what I think:

  • The default values are "books", "page", "chapter".
  • If the values are set to "one", "two" "three", then it forms the relative address "./one/bookname/two/pagename" or "./one/bookname/three/chaptername".

Can this feature be implemented structurally? I had modified "/books/" from "app/Entities/Book.php" and "app/Entities/Page.php" to "/b/", but the book hasn't been redirected to "./b/bookname".

Originally created by @ististyle on GitHub (Jul 24, 2019). When I create a page called "pagename" under the book called "bookname", the relative address becomes "./books/bookname/page/pagename". I'd like to simplify or customize this address like "./b/bookname/p/pagename". I hope that there will be new env items. Here is what I think: * The default values are "books", "page", "chapter". * If the values are set to "one", "two" "three", then it forms the relative address "./one/bookname/two/pagename" or "./one/bookname/three/chaptername". Can this feature be implemented structurally? I had modified "/books/" from "app/Entities/Book.php" and "app/Entities/Page.php" to "/b/", but the book hasn't been redirected to "./b/bookname".
Author
Owner

@ssddanbrown commented on GitHub (Aug 3, 2019):

Thanks for your request @ististudio.

This is somewhat related to #1490

If you could explain the benefits that this request would bring to BookStack users it would really help show what this request achieves.

@ssddanbrown commented on GitHub (Aug 3, 2019): Thanks for your request @ististudio. This is somewhat related to #1490 If you could explain the benefits that this request would bring to BookStack users it would really help show what this request achieves.
Author
Owner

@ististyle commented on GitHub (Sep 7, 2019):

I sovled the problem by modifying 'books' from "routes/web.php" to 'b'. Since this method was simpler than I thought, my suggestion may not be necessary.

Thank you for your comment.

@ististyle commented on GitHub (Sep 7, 2019): I sovled the problem by modifying `'books'` from "routes/web.php" to `'b'`. Since this method was simpler than I thought, my suggestion may not be necessary. Thank you for your comment.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#1271