Fix permalinks

Some users were having issues with broken permalinks when
DOMAIN_CURRENT_SITE isn't set.

Fixes #127