Fix for permalinks in 1.3

This fixes issue 2245:
https://github.com/ingenesis/shopp/issues/2245