| | 86 | === State URL Selection Process === |
| | 87 | URL selection works by the following process: |
| | 88 | {{{ |
| | 89 | switch_to_url = default_url |
| | 90 | |
| | 91 | if ((status.abort_request or status.quit_request or status.no_heartbeat) and (exiting_url not empty)) |
| | 92 | switch_to_url = exiting_url |
| | 93 | else if (status.suspended and (suspended_url not empty)) |
| | 94 | switch_to_url = suspended_url |
| | 95 | else if (status.network_suspended and (network_suspended_url not empty)) |
| | 96 | switch_to_url = network_suspended_url |
| | 97 | else if (running_url not empty) |
| | 98 | switch_to_url = running_url |
| | 99 | |
| | 100 | if ((is_vboxwrapper_job && web_api_port) && (switch_to_url is empty)) |
| | 101 | switch_to_url = "http://localhost:" + web_api_port + "/"; |
| | 102 | }}} |
| | 103 | |