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
I'm posting this as a note of something to possibly update in the future...
The code for path never allows an empty string to be added to the _namespace meaning when trying to construct a path using join there is never a scenario where a '/' is the first character so all constructed paths are relative. In my app I want all the paths to be absolute from root so the createHref functionality feels broken. I'm doing [""].concat(Router._namespace).join('/') directly in my code to create the current relative path. I feel likecreateHref should be changed to use that approach.
The text was updated successfully, but these errors were encountered:
I'm posting this as a note of something to possibly update in the future...
The code for
path
never allows an empty string to be added to the_namespace
meaning when trying to construct a path usingjoin
there is never a scenario where a '/' is the first character so all constructed paths are relative. In my app I want all the paths to be absolute from root so thecreateHref
functionality feels broken. I'm doing[""].concat(Router._namespace).join('/')
directly in my code to create the current relative path. I feel likecreateHref
should be changed to use that approach.The text was updated successfully, but these errors were encountered: