Permalink function update