问题
In my chrome extension which replaces the new tab page, when I refresh the page it shows me file not found. Can anybody tell how to fix this issue? Is this has to do with either page history or file naming convention? I have index.html set in manifest.json:
"chrome_url_overrides" : {
"newtab": "index.html"
}
回答1:
Change
<base href="/">
To
<base href="/index.html">
And it works!
来源:https://stackoverflow.com/questions/41277357/unable-to-refresh-new-tab-in-my-chrome-extension