Improve resource loading on wiki.
Fix error page url resolution.

Now it properly redirects to error page when
api service is down.