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

Config to prevent the link from being changed automatically #55

Closed mohammad-hashem-foo closed 12 months ago

mohammad-hashem-foo commented 12 months ago

How I can prevent the link from being changed automatically when using assign method

Pjax.assign('/?refresh=1', { areas: ["#mainContent"], fetch: { timeout: 60000, }, });

falsandtru commented 12 months ago

Not sure what you mean. Describe it clearly.

mohammad-hashem-foo commented 12 months ago

When using pjax request the url in the browser when the response loads updated automatically is there a way to not change the url

falsandtru commented 12 months ago

No. Pjax is not a tool for updates. Use ajax instead.