BookStackApp / BookStack

A platform to create documentation/wiki content built with PHP & Laravel
https://www.bookstackapp.com/
MIT License
15.46k stars 1.94k forks source link

Locate broken links in content #5163

Open ssddanbrown opened 3 months ago

ssddanbrown commented 3 months ago

Describe the feature you'd like

Functionality to scan links in content and detect which links are no longer valid (lead to >=400 status). Primarily for anchors, potentially for image/media references also.

Describe the benefits this would bring to existing BookStack users

This will allow broken links in content to be detected and dealt with (updated/removed) so that readers won't be dealing with dead links. From the editor point of view, system-level scanning of this helps locating of such links without spending an exhaustive amount of time manually searching.

Can the goal of this request already be achieved via other means?

Yes:

Have you searched for an existing open/closed issue?

How long have you been using BookStack?

3 months to 1 year

Additional context

Note: This was opened on behalf of a user through the BookStack support services. (Ticket 116)

Dev Notes

doersino commented 1 month ago

Piggy-backing on this issue, if I may – with a related feature request: Other wiki software (MediaWiki, DokuWiki) displays links to non-existant pages in red. Would this be possible to implement in BookStack?

(I'm not sure if this might already possible, given BookStack's internal data structures and permission system, but I'd guess "not easily" – so any changes required to support this broken-link location feature could ideally be done with this feature in mind, too.)