core icon indicating copy to clipboard operation
core copied to clipboard

More Routing and URL Cleanup

Open wezell opened this issue 10 years ago • 11 comments

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 #

wezell avatar Nov 03 '16 13:11 wezell

why use the '#' character? is not better just:

/dotAdmin/login /dotAdmin/browser
/dotAdmin/content /dotAdmin/content/asdfadsfads-asdfadsfadsf-asdfdasfadsf /dotAdmin/logout

freddyucv avatar Nov 16 '16 18:11 freddyucv

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 .

dotcmsCodeReview avatar Nov 16 '16 19:11 dotcmsCodeReview

Check https://docs.angularjs.org/guide/$location -angular has a way to do hashbang navigation.

jgambarios avatar Nov 28 '16 17:11 jgambarios

  • pattern for Angular tools - http://localhost:8080/dotAdmin/#/rules
  • For legacy tools - http://localhost:8080/dotAdmin/#/c/site-browser

wezell avatar Jan 04 '17 21:01 wezell

P.R https://github.com/dotCMS/core-web/pull/243 and https://github.com/dotCMS/core/pull/10390

oswaldogallango avatar Jan 05 '17 20:01 oswaldogallango

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

oswaldogallango avatar Jan 05 '17 20:01 oswaldogallango

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

oswaldogallango avatar Jan 20 '17 14:01 oswaldogallango

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

bryanboza avatar Jan 26 '17 18:01 bryanboza

updating some links references to portlet ids using the new portletId enum P.R https://github.com/dotCMS/core/pull/10611

oswaldogallango avatar Feb 01 '17 21:02 oswaldogallango

PR: https://github.com/dotCMS/core-web/pull/261

jgambarios avatar Feb 02 '17 19:02 jgambarios

Fixed, just pending the /dotAdmin/#/content/asdfadsfads-asdfadsfadsf-asdfdasfadsf <--- content edit id or inode but seems is ok for now

bryanboza avatar Feb 06 '17 15:02 bryanboza