falsandtru / pjax-api

The advanced PJAX superior to SPA.
https://falsandtru.github.io/pjax-api/
Apache License 2.0
318 stars 28 forks source link

[Question] Config example to ignore url internal and external #27

Closed victorpdiez closed 7 years ago

victorpdiez commented 7 years ago

Hi, Thanks for this project.

I am sorry to ask but after reading the documentation and testing it and cannot configure Pjax to ignore some URL.

Could you please give an example configuration to ignore

To disable ajax I have tried adding to config this:

scope: {
    '*/xx.php': undefined, // disable
    ' maps.googleapis.com/*': undefined, // disable
}

Which are the url I want PJAX disable.

Thanks a lot for your time an effort.

falsandtru commented 7 years ago

Hi,

scope: {
    //'*/xx.php': undefined, // disable <- invalid
    '/xx.php': undefined, // disable <- valid
    //' maps.googleapis.com/*': undefined, // disable <- invalid
}