Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Using CKFinder.popup on page with get parameter type #328
I have some issues with the CKFinder popup. I am using it on a page that already has a get parameters in the url. One of them being type=5 / type=n. This clashes with CKFinder popup since it passes along the parameter to the connector. And we don't have a resourceType called 5. We have pictures, blog, files, news etc.
Is there a way to make popup neglect the current page parameters?
I've tried passing along a pass argument. But that changes nothing.
CKFinder parses some URL parameters with defined names, so if there's a naming collision it may not work as expected.
The only workaround I can think of (which is kinda hacky) is pushing a new history state, so URL parameters are stripped without page reload. This has to be done before
<script> window.history.pushState('', '', window.location.pathname); </script> <script src="../ckfinder.js"></script>