dev-utils: fix busy refresh loop
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/dev-utils': patch
|
||||
---
|
||||
|
||||
Fixed busy refresh loop that happened when registering a page at `/`.
|
||||
@@ -227,7 +227,11 @@ class DevAppBuilder {
|
||||
|
||||
const DevApp = hot(hotModule)(this.build());
|
||||
|
||||
if (window.location.pathname === '/' && this.defaultPage) {
|
||||
if (
|
||||
window.location.pathname === '/' &&
|
||||
this.defaultPage &&
|
||||
this.defaultPage !== '/'
|
||||
) {
|
||||
window.location.pathname = this.defaultPage;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user