Skip to content

Bookmark Permalinks Within Table Are Misnamed When Adding a Row Mid-Table #5582

@zennnzonnne

Description

@zennnzonnne

Attempted Debugging

  • I have read the debugging page

Searched GitHub Issues

  • I have searched GitHub for the issue.

Describe the Scenario

I've got a two column table that I'm using to organize a glossary of terms. Column 1 are the terms and Column 2 are the definitions. To easily link to words within that glossary (and for styling), each glossary term is a "Tiny Header". Each corresponding column 2 is using "Paragraph" styling. When I add more rows, I get duplicate, versioned permalinks rather than unique permalinks. Also – the new row takes the old permalink, and the old row versions the permalink.

Example :

  • If my glossary term is "Some Term", my permalink for "Some Term" is /3#bkmrk-some-term.
  • If I add a blank row above "Some Term", and the term is "Another Term", my permalink for the "Another Term" is /3#bkmrk-some-term and "Some Term" becomes /3#bkmrk-some-term-1

I've tried to remove the formatting of the table, I've tried changing all text to paragraph styling, saved it, and back to header styling, and the wrong bkmrk link persists throughout.

Oddly, if I do this same thing outside of a table, it functions the way you'd expect it to: "Some Term" remains "some-term" and "Another Term" becomes "another-term".

Ideally, I'd like the "Some Term" permalink to remain /3#bkmrk-some-term and for "Another Term" to have the permalink that is /3#bkmrk-another-term.

Perhaps a method to audit and repair permalinks within a table?

I'm not using the new WYSIWYG beta editor.

Exact BookStack Version

BookStack v24.12.1

Log Content

No response

Hosting Environment

can't remember but can look it up if it's critical here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions