ConnectWiseControlAPI icon indicating copy to clipboard operation
ConnectWiseControlAPI copied to clipboard

Connect-CWC doesn't support subdirectories

Open jackmusick opened this issue 6 years ago • 1 comments

Connect-CWC appears to stripping the server down to the base domain, ignoring things like protocol and subdirectories. On my (and I'm sure others) default install, our URL will look like this:

https://automate.mydomain.com/RemoteSupport

Line 16 of Connect-CWC.ps1 has this:

$Server = ($Server -replace("http.*:\/\/",'') -split '/')[0]

I propose changing it to this:

$Server = $Server -replace("http.*:\/\/",'')

This way, you can force HTTPS while keeping the subdirectory intact. In my testing, even if you had a trailing forward slash at the end, though it would end up doubling it up ("RemoteSupport//"), functions continued to work just fine.

jackmusick avatar Aug 27 '20 20:08 jackmusick

The issue has been resolved. Thanks for raising the issue. 93fcc11

christaylorcodes avatar Sep 10 '20 04:09 christaylorcodes