Update permalink thor file