Opening links inside a drawer/off-canvas #203

Closed
opened 2019-06-10 11:05:15 -05:00 by bronze · 0 comments
bronze commented 2019-06-10 11:05:15 -05:00 (Migrated from github.com)

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

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...
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: iLoveElysia/pjax#203