You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, the script tag links to a local filepath, which works locally but not when deployed (because GitHub Pages hosts files differently to how they look in your repo)
Here is Oli's more detailed answer when I asked him:
the script.js file isn't at /script.js, it's at /Wk2-ABEH-Doogle/script.js
they've used an absolute URL (<script src="/script.js"> )
which is relative to the root domain (GitHub Pages deploys at sub-routes annoyingly)
probably fixable by just removing the slash (<script src="script.js">)
The text was updated successfully, but these errors were encountered:
Hi, the script tag links to a local filepath, which works locally but not when deployed (because GitHub Pages hosts files differently to how they look in your repo)
Here is Oli's more detailed answer when I asked him:
The text was updated successfully, but these errors were encountered: