summaryrefslogtreecommitdiffstats
path: root/src/assets/javascripts/helpers/google-search.js
diff options
context:
space:
mode:
authorJason Kim <git@jasonk.me>2021-04-22 22:43:30 -0700
committerJason Kim <git@jasonk.me>2021-04-22 23:00:09 -0700
commit21ee6b8542af700dc3d81520c7e62bc2657cb2af (patch)
tree9f728e96ca2a4124420ff70e16bb498e1d612c42 /src/assets/javascripts/helpers/google-search.js
parentbb6894cec54f746d76d8209ca25198881cf9d29b (diff)
downloadprivacy-redirect-21ee6b8542af700dc3d81520c7e62bc2657cb2af.tar.gz
privacy-redirect-21ee6b8542af700dc3d81520c7e62bc2657cb2af.tar.bz2
privacy-redirect-21ee6b8542af700dc3d81520c7e62bc2657cb2af.zip
fix: add "/comments" prefix only if it's missing
Although I have never seen it in the wild, it is possible to navigate to "redd.it/comments/...". This should redirect to "teddit.net/comments/..." in the case of instance teddit.net. However, the current code redirects it to "teddit.net/comments/comments/...". Fix it by avoiding adding the prefix if it's already there.
Diffstat (limited to 'src/assets/javascripts/helpers/google-search.js')
0 files changed, 0 insertions, 0 deletions