Fix redirect to addons/plugins when clean urls are off. Closes #1061