Skip to content
This repository has been archived by the owner on Aug 4, 2019. It is now read-only.

Utilize route-rewriting for subroutes #141

Open
1 task
themightychris opened this issue Sep 7, 2017 · 0 comments
Open
1 task

Utilize route-rewriting for subroutes #141

themightychris opened this issue Sep 7, 2017 · 0 comments
Labels
A-sencha-app Area: General app infrastructure, viewport, and navigation C-chore Category: Necessary work for core-maintainers that is not a bug or feature E-hard Effort: Very difficult; do not attempt without significant relevant experience and motivation. L-sencha Language: Sencha/Ext JS (JavaScript)

Comments

@themightychris
Copy link
Contributor

themightychris commented Sep 7, 2017

The jarvus-routing package offers a feature for controllers to be able to rewrite routes before they are realized. Utilize this for things like how when you redirect to the URL of a person, the People controller needs to append whichever subtab you have active to the route. With a rewrite in place, a call of redirectTo('people/lookup/chris') will be rewritten to 'people/lookup/chris/courses' by the people controller if that's the active subtab BEFORE it gets written to the address bar. Currently it redirects AFTER the original un-tabbed route got written to the address bar, creating a back-button trap

  • Eliminate any hardcoded 'profile' suffixes like in Profile controller's phantom redirector
@themightychris themightychris added this to the App best practices milestone Sep 7, 2017
@themightychris themightychris added A-sencha-app Area: General app infrastructure, viewport, and navigation C-chore Category: Necessary work for core-maintainers that is not a bug or feature E-hard Effort: Very difficult; do not attempt without significant relevant experience and motivation. L-sencha Language: Sencha/Ext JS (JavaScript) labels Sep 8, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-sencha-app Area: General app infrastructure, viewport, and navigation C-chore Category: Necessary work for core-maintainers that is not a bug or feature E-hard Effort: Very difficult; do not attempt without significant relevant experience and motivation. L-sencha Language: Sencha/Ext JS (JavaScript)
Projects
None yet
Development

No branches or pull requests

1 participant