Merge pull request #3999 from LeKeve/lighthouse-trailing-slash
fix(lighthouse plugin): Remove trailing slash from lighthouse audit urls
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-lighthouse': patch
|
||||
---
|
||||
|
||||
Strip trailing slash from url when creating a new audit. This change prevents duplicate audits from being displayed in the audit list.
|
||||
@@ -79,7 +79,7 @@ export const CreateAuditContent = () => {
|
||||
// TODO use the id from the response to redirect to the audit page for that id when
|
||||
// FAILED and RUNNING audits are supported
|
||||
await lighthouseApi.triggerAudit({
|
||||
url,
|
||||
url: url.replace(/\/$/, ''),
|
||||
options: {
|
||||
lighthouseConfig: {
|
||||
settings: {
|
||||
|
||||
Reference in New Issue
Block a user