You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But it cause problem through using it.
For example:
// when I use it as belowlink('/')// result: //// OR ---link('/login')// result: //login// This happens because root may have been empty stringconstrouter=newNavigo('/');// root: '/' and it'll be cleared --> root: empty string
I think it must trim below part for slashes:
// use REGEXP to trim slashesclean(root+"/"+clean(path));// Example: if we have '/login'// It will be:// (clean('/login')) --> login// then --> '/' + 'login' --> '/login'// and problem will solve I guess
Thanks for your time
The text was updated successfully, but these errors were encountered:
Hi,
I found a problem with link method, it has below functionality:
But it cause problem through using it.
For example:
I think it must trim below part for slashes:
Thanks for your time
The text was updated successfully, but these errors were encountered: