Title: WPPCP javascript breaks hash routing
Last modified: July 8, 2019

---

# WPPCP javascript breaks hash routing

 *  [ashtarcommunications](https://wordpress.org/support/users/ashtarcommunications/)
 * (@ashtarcommunications)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/wppcp-javascript-breaks-hash-routing/)
 * I have an embedded react app in my admin area that uses a hash-based router.
 * Using WPPCP, it throws javascript errors and won’t load the page.
 * That’s because of this line, in js/wppcp-admin.js:
    520 $(hash_key).addClass(‘
   wppcp-info-setting-active’);
 * It assumes a hash fragment in the URL directs to an anchor link – that isn’t 
   true when using a hash router, so jQuery throws errors when it can’t find a matching
   DOM element.
 * I can obviously comment out that line, but it doesn’t survive a plugin upgrade.

The topic ‘WPPCP javascript breaks hash routing’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-private-content-plus_304046.svg)
 * [WP Private Content Plus](https://wordpress.org/plugins/wp-private-content-plus/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-private-content-plus/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-private-content-plus/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-private-content-plus/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-private-content-plus/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [ashtarcommunications](https://wordpress.org/support/users/ashtarcommunications/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/wppcp-javascript-breaks-hash-routing/)
 * Status: not resolved