Julias0 / sobdo

2 stars 1 forks source link

redirections getting broken due to links also getting swapped words #7

Open Julias0 opened 4 months ago

Julias0 commented 4 months ago

If the dictionary contains words which are a part of some html tag or part of a url, the corresponding link is broken

To Reproduce Steps to reproduce the behavior:

  1. Create a account on substack
  2. Go to your substack page (Ex - dhar.substack.com)
  3. Click on Dashboard
  4. No redirection happens to substack dashboard

Expected behavior You should be redirected to the substack dashboard

Additional context This is probably happening because everything in the doc contents is being text replaced. The right way would be to go over every text node and replace only the text content.

Because of the current approach, the js code, links etc is breaking