Fix for notifications not being shown when running with prefix

Related to

http://meta.discourse.org/t/things-that-break-after-moving-a-discourse-instance-to-a-sub-uri/5871