Skip to content

Commit

Permalink
update integrations logic
Browse files Browse the repository at this point in the history
  • Loading branch information
aorcsik committed Jul 1, 2024
1 parent 37909a7 commit e5bc8bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/js/integrations/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ addEventListener('fetch', (event) => {
urlObject.hostname = 'webflow.bitrise.io';

if (urlObject.pathname.match(/^\/integrations\/steps\/.+/)) {
urlObject.pathname = '/integrations/steps';
} else if (urlObject.pathname.match(/\/integrations$|integrations\/(.*)/)) {
urlObject.pathname = '/integrations/step';
} else if (urlObject.pathname.match(/^\/integrations\/?$/)) {
urlObject.pathname = '/integrations';
}

Expand Down
2 changes: 1 addition & 1 deletion src/js/steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const details = new DetailsSection();

IntegrationsService.loadIntegrations().then((integrations) => {
if (!stepFilter || !(stepFilter in integrations.steps)) {
window.location.href = '/integrations/steps/not-found'; // 404
window.location.href = '/integrations';
} else {
const step = integrations.steps[stepFilter];

Expand Down

0 comments on commit e5bc8bb

Please sign in to comment.