Fix playlist permalink issue and add spec