mattmilburn / strapi-plugin-preview-button

A plugin for Strapi CMS that adds a preview button and live view button to the content manager edit view.
MIT License
100 stars 35 forks source link

Fix param encoding in parseUrl util #112

Closed mattmilburn closed 11 months ago

mattmilburn commented 11 months ago

Previously the plugin was relying on qs to automatically encode query string params but once tests related to encoded params were added, the tests were failing.

The fix for this was to disable encoding in qs and instead use encodeURIComponent directly in the plugin.