diff options
author | Jason Kim <git@jasonk.me> | 2021-04-22 22:54:00 -0700 |
---|---|---|
committer | Jason Kim <git@jasonk.me> | 2021-04-22 23:01:54 -0700 |
commit | e3df6c4333c107240a45d6fbad933b54caa11139 (patch) | |
tree | b393b2ab19453a54dc1aa5a2dc0d072660c57b82 /README.md | |
parent | fix: add "/comments" prefix only if it's missing (diff) | |
download | libredirect-e3df6c4333c107240a45d6fbad933b54caa11139.zip |
fix: add comments prefix if no nested path
The previous fix failed to consider links like "redd.it/r/.../comments/...". Those don't really exist in the wild, and they don't work (when redirects are turned off). Still, play it safe and don't add "/comments" prefix unless the path has height 1. Now, redirects should work for - redd.it/foo - redd.it/comments/foo - redd.it/r/bar/comments/foo even though the only kind of native link that works is - redd.it/foo
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions