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
106 stars 38 forks source link

Fix param encoding in parseUrl util #112

Closed mattmilburn closed 1 year ago

mattmilburn commented 1 year 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.