use slashes in mids  Fixes #3797, #3583
style cleanups, don't call userWindow for non-HTML pages Fixes #3798
Merge remote-tracking branch 'origin/master' into orion_1_0_3481

* origin/master:
  style cleanups, don't call userWindow for non-HTML pages Fixes #3798
  use slashes in mids  Fixes #3797, #3583