finnsson / pagerjs

The Single Page Application Framework for KnockoutJS
http://pagerjs.com/
MIT License
271 stars 68 forks source link

how to use pager.navigate to go to a relative-parent? #199

Closed slisznia closed 9 years ago

slisznia commented 9 years ago

I have a modal page with a form. When a user submits the form, I wish to send him back to a relative-parent of the modal via pager.navigate()

My approach is to refer to currentParentPath:

pager.navigate(page.currentParentPath());
stiff commented 9 years ago

It would be nice if pager.navigate understands the '../' for this

umartopia commented 6 years ago

any suggested way to accomplish this?