MoOx / pjax

Easily enable fast Ajax navigation on any website (using pushState + xhr)
MIT License
1.45k stars 124 forks source link

Opening links inside a drawer/off-canvas #203

Closed bronze closed 5 years ago

bronze commented 5 years ago

Hi there

Im trying to open links inside an off-canvas drawer (like https://getuikit.com/docs/offcanvas). Im doing this by linking to the #off-canvas and calling pjax via onclick script (ugly hack but its working). However, i cant figure out how to redirect links and subpages. They should not be accessible on their own, but via pjax from the root website.

Does anyone got an idea on how to accomplish this?

I have put a redirect header on these pages to direct the user back to the root, but havent figured out how to pass the url into pjax there...