[cnn] Fix for urls ending in '.cnn-ap' (fixes #3985)