fix query params + added changeset

Signed-off-by: dimisjim <dimitris.moraitidis@gmail.com>
This commit is contained in:
dimisjim
2023-11-17 15:45:10 +01:00
parent b1ada164c5
commit d2f5662985
2 changed files with 7 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-gcp-projects': patch
---
Fix query parameter for project details page which should point to projectId rather than project name
@@ -127,7 +127,7 @@ const DetailsPage = () => {
{details?.name && (
<Button>
<a
href={`${cloud_home_url}/home/dashboard?project=${details.name}&supportedpurview=project`}
href={`${cloud_home_url}/home/dashboard?project=${details.projectId}&supportedpurview=project`}
target="_blank"
rel="noreferrer noopener"
>
@@ -138,7 +138,7 @@ const DetailsPage = () => {
{details?.name && (
<Button>
<a
href={`${cloud_home_url}/logs/query?project=${details.name}&supportedpurview=project`}
href={`${cloud_home_url}/logs/query?project=${details.projectId}&supportedpurview=project`}
target="_blank"
rel="noreferrer noopener"
>