Open melwinlobo18 opened 3 years ago
Try changing the file below.
Locate the file: web> index.html
Inside the
tag place: < base href = "/" >In my project it works well.
I have changed it. It works fine with the existing routes but when I try with http://localhost:8000/non-existent-path
it throws the error.
Try add the unknownRoute in GetMaterialApp file below.
Locate the file: lib> main.dart
add in GetMaterialApp( .. unknownRoute: GetPage( name: '/404-not-found', page: () => NotFoundPage(), ), ....
In my project it works well.
This also happens if you try to reproduce issue #1170 after installing the url_strategy package
@melwinlobo18 try again with the latest version from the repo, we just landed #1171 and it is working for me
Describe the bug I'm using url_strategy package which is used to remove the "#" in the URL. I get the following error when try to access the non-existent path.
A GlobalKey was used multiple times inside one widget's child list.
**Reproduction code
example:
Expected behavior No error is thrown when url_strategy is not used.
Getx Version: get: ^3.26.0
Describe on which device you found the bug: Chrome