Fixes #1174 online.php unknown location when viewing post

Fixes #1174