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.
I'm posting this as a note of something to possibly update in the future...
The code for
pathnever allows an empty string to be added to the_namespacemeaning when trying to construct a path usingjointhere 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 thecreateHreffunctionality feels broken. I'm doing[""].concat(Router._namespace).join('/')directly in my code to create the current relative path. I feel likecreateHrefshould be changed to use that approach.