MoOx / pjax

Easily enable fast Ajax navigation on any website (using pushState + xhr)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Opening links inside a drawer/off-canvas

bronze opened this issue · comments

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...