How to check if the URL is part of the string. Full view string
index.php?route=catalog/product/edit&user_token=BrNypCZLBTKEZLU04b0YatYdMo5YmLRd&product_id=51 I try to check, but in vain, what exactly is my mistake and how to do it
<script> var path = window.location.search; if (path.match("/^\?route=catalog/product/edit$/")) alert ("yes") </script>