Adding a server based translation memory to a project using TranslationProviderCascadeEntry class

I have a file based project.

I'm trying to add a server based memory

I'm using TranslationProviderCascadeEntry.

Uri projectServer = new Uri("https://test-server.com");

String fileName = "sdltm.https://test-server.com/path/memory";

project.Credentials.AddCredential(projectServer, "type=WindowsUser");
config.Entries.Add
(
    new TranslationProviderCascadeEntry
    (
        new TranslationProviderReference(new Uri(fileName)),
        true,
        true,
        true,
        0
    )
);

project.UpdateTranslationProviderConfiguration(config);

It creates the memory, but it asks to login into the server: https://test-server.com/path/ instead of the server https://test-server.com/

So what's the point of adding the credential?

Also shouldn't it login for the user if I'm adding the credential?

And if I try to remove the path from the memory name the memory doesn't work.

I can't see a combination that would work, unless I' missing something.

emoji