fixed oddities in base_url and url generation for subdirectoried instances
of NodeBB