The problem here is that we need to modify the "global" permalink (the permalink visible in the url bar).