Skip to content

Commit

Permalink
Refs #131062 check if basePathname has a true value:
Browse files Browse the repository at this point in the history
- otherwise we show progress on root of site when you are on a context
  and then you enter control panels and you click the back button which
  takes you to the site root
  • Loading branch information
ichim-david committed Jun 4, 2021
1 parent ecbf223 commit b56dd53
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ProgressWorkflow.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ const ProgressWorkflow = (props) => {
if (
contentId &&
contentContainsPathname &&
basePathname &&
basePathname !== '/' && // wihout this there will be a flicker for going back to home ('/' is included in all api paths)
workflowProgress?.result?.steps &&
workflowProgress.result.steps.length > 0 &&
Expand Down

0 comments on commit b56dd53

Please sign in to comment.