Update cms_plugins.py

This solves redirection bug.