FOUR-14069: Create a script to correct the broken links related to the Web Entry by eiresendez · Pull Request #6182 · ProcessMaker/processmaker

Issue & Reproduction Steps

Previously, when a process was created from a template, the import process incorrectly generated the web entry URL, as it omitted the application URL. This issue was due to the use of getenv('APP_URL') instead of config('app.url').

This PR resolves instances where the web entry URL does not include the application URL.

  1. Have a process with web entry imported or created from a previous version.
  2. Review the link webentryRouteConfig.entryUrl.
  3. For backward compatibilities is important to create a script to correct the entryUrl for all processes.

Solution

  • An upgrade script has been developed to modify the web entry URL for all affected processes, but only when necessary, i.e., when the current web entry URL is not a valid URL.

How to Test

Run the script.
Review in process-catalogue.

Before upgrade:

Screen.Recording.2024-02-07.at.2.38.15.p.m.mov

After upgrade:

Screen.Recording.2024-02-07.at.2.39.49.p.m.mov

Related Tickets & Packages