(SOLVED) Code not working when previewing from dashboard

I brought this up internally - should have an answer soon.