I removed some HTML in the root path of a website, but when I navigate to an adjacent page, a large section of that page is gone as well.
i.e. All the website's pages are under a div with a class name .core-rail
. I removed the contents inside the div in the home page, but when I go to the notifications page everything inside of the .core-rail
is also gone.
I would like to only remove the contents on the home page, and when navigating away have the contents recovered. I set all of the innerHTML to empty strings to remove it, if that helps.