More Routing and URL Cleanup
I am open to discussion here but I believe we need our URLs to look like this:
/dotAdmin/#/login
/dotAdmin/#/browser (where ext_browser is driven by the portlet id and not hard coded if possible, which I want to change)
/dotAdmin/#/content <---- content search screen
/dotAdmin/#/content/asdfadsfads-asdfadsfadsf-asdfdasfadsf <--- content edit id or inode
/dotAdmin/#/logout
- [ ] Move /html/ng to /dotAdmin
- [ ] Move Routing to use #
why use the '#' character? is not better just:
/dotAdmin/login
/dotAdmin/browser
/dotAdmin/content
/dotAdmin/content/asdfadsfads-asdfadsfadsf-asdfdasfadsf
/dotAdmin/logout
It's better because it supports the back button easier when moving from a non angular 2 app and things like this.
On Wed, Nov 16, 2016 at 1:27 PM Freddy Rodriguez [email protected] wrote:
why use the '#' character? is not better just:
/dotAdmin/login /dotAdmin/browser
/dotAdmin/content /dotAdmin/content/asdfadsfads-asdfadsfadsf-asdfdasfadsf /dotAdmin/logout
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/dotCMS/core/issues/10059#issuecomment-261029364, or mute the thread https://github.com/notifications/unsubscribe-auth/ABfteICJ9f8wPH_QjoJEHomydNP_FOicks5q-0r_gaJpZM4KoY2v .
Check https://docs.angularjs.org/guide/$location -angular has a way to do hashbang navigation.
- pattern for Angular tools -
http://localhost:8080/dotAdmin/#/rules - For legacy tools -
http://localhost:8080/dotAdmin/#/c/site-browser
P.R https://github.com/dotCMS/core-web/pull/243 and https://github.com/dotCMS/core/pull/10390
still need to reduce the path for angular component like the rules engine one for the moment still works like this http://localhost:8080/dotAdmin/#/c/a/rules
Second pull request with final changes https://github.com/dotCMS/core/pull/10489 and https://github.com/dotCMS/core-web/pull/250. Now the url's work for pattern for Angular tools - http://localhost:8080/dotAdmin/#/rules and For legacy tools - http://localhost:8080/dotAdmin/#/c/site-browser
The new changes looks good, also we need some work in the last two points:
/dotAdmin/#/content/asdfadsfads-asdfadsfadsf-asdfdasfadsf <--- content edit id or inode /dotAdmin/#/logout
updating some links references to portlet ids using the new portletId enum P.R https://github.com/dotCMS/core/pull/10611
PR: https://github.com/dotCMS/core-web/pull/261
Fixed, just pending the /dotAdmin/#/content/asdfadsfads-asdfadsfadsf-asdfdasfadsf <--- content edit id or inode but seems is ok for now