diff --git a/.changeset/twenty-parents-judge.md b/.changeset/twenty-parents-judge.md new file mode 100644 index 0000000000..a639f83ba1 --- /dev/null +++ b/.changeset/twenty-parents-judge.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-app-backend': patch +--- + +Fix root route handling when query parameters are present diff --git a/plugins/app-backend/src/service/appPlugin.test.ts b/plugins/app-backend/src/service/appPlugin.test.ts index e1065e5b6a..bb5f92b536 100644 --- a/plugins/app-backend/src/service/appPlugin.test.ts +++ b/plugins/app-backend/src/service/appPlugin.test.ts @@ -93,9 +93,9 @@ describe('appPlugin', () => { ], }); - const rootContent = await fetch(`http://localhost:${server.port()}`).then( - res => res.text(), - ); + const rootContent = await fetch( + `http://localhost:${server.port()}?foo=bar`, + ).then(res => res.text()); expect(rootContent).toBe(`