fix base url and link for css/js files.