I’m trying to create a complex configuration screen in WordPress admin and have decided to use Backbone, since it’s been integrated into WP for some time now, anyway. The problem I have is with router. Let’s say, I use custom options page:


Then, I create Backbone router, with routes

routes: {
     "/": "initRoot",
     "/general": "initGeneral"

Run history:

Backbone.history.start({pushState: true, root: "/mytheme/wp-admin/options-general.php?page=myconf"});

And navigate:


This all works fine, untill I hit F5 of Ctrl+F5, which gives me the error page with “You do not have sufficient permissions to access this page.” Is there some workaround for me to use router properly in WordPress backend? Thanks.

Read more here: WordPress + Backbone Router refresh


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Related Wordpress search:

, , ,

Wordpress related questions and answers: