Isn't this backwards? if the parent directory is in the permalink, it's an absolute permalink, no?