Strip trailing slash from urls when creating lighthouse audit

This commit is contained in:
Kevin Lee
2021-01-10 08:56:35 -08:00
parent bbc5b811d5
commit 1cac511fd5
@@ -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: {