server-side permalink calculation