7 examples
Broken link
Link directs users to a non-existent or incorrect page.
[ FAQ1 ]
What is a broken link?
A broken link occurs when a hyperlink leads users to a webpage, document, or resource that no longer exists or cannot be reached. Common reasons include moved, deleted, or incorrectly entered URLs, server downtime, or changes in a website's structure. Visitors encountering broken links typically see an error message like "404 Not Found," indicating that the target resource is missing. Frequent broken links degrade site usability and may harm a website’s credibility and search engine optimization (SEO).
[ FAQ2 ]
How to fix a broken link
To fix broken links, regularly audit your website using tools designed to detect invalid hyperlinks. Upon identifying a broken link, correct the hyperlink URL by updating it to point to the accurate location of the resource. If the resource has been removed permanently, redirect the broken link to an appropriate existing page, such as a relevant article or your homepage. Implement custom 404 error pages that help users navigate back to active content on your site. Proactively maintaining links through routine checks can prevent future broken links and improve overall user experience.
diff block
greptile
style: Background image uses an external Reddit URL. Consider hosting the image in the repository to prevent broken links if the Reddit post is removed.
diff block
greptile
logic: Broken link - the path '../../release-8-6/docs/migration-guide/from-older-version.mdx' appears to be incorrect since it references a non-existent version (8.6)
diff block
greptile
syntax: Broken links in changelog - remove the :1 line reference and just keep the file paths
```suggestion
+- Added comprehensive tests for the `input_splitter` module ([`src/input_splitter.py`](src/input_splitter.py)), covering various file types, splitting strategies, edge cases, and error handling. Test file created at [`tests/test_input_splitter.py`](tests/test_input_splitter.py).
```
diff block
greptile
logic: Release notes URL uses 'OpenSecret/maple' but repository is 'OpenSecretCloud/maple'. This will result in broken links.
diff block
greptile
Based on the earlier comment, we should keep the `--diff-filter=ACMRTUB` to prevent including deleted files in the diff output, and we should also maintain the `--exclude-standard` flag for `ls-files` to ignore files specified in .gitignore. Here's the fix:
This maintains the original behavior of only tracking files that are Added, Copied, Modified, Renamed, Type-changed, Unmerged, or have a broken link (B), while also properly handling gitignored files.
suggested fix
+ ...execGitCmd(['diff', '--name-only', '--diff-filter=ACMRTUB', mergeBase]),
+ ...execGitCmd(['ls-files', '--others', '--exclude-standard']),
diff block
greptile
syntax: Broken link - CHANGELOG.md path should use blob/main instead of just CHANGELOG.md
suggested fix
+For Session Replay, See [posthog-react-native-session-replay](https://github.com/PostHog/posthog-react-native-session-replay/blob/main/CHANGELOG.md)
Want to avoid this bug in your codebase? Try Greptile.
Avoid this bug!