[SOLVED] Base Path Proxy Server UI incorrect paths

Hello,

I am hoping you can help with this. We have the following configuration using Squidex 5.9.0.0 hosted on Kubernetes with an Envoy Proxy.

  1. Squidex hosted under the site path /content/ using an Proxy to redirect the path /content/ to the squidex instance.
  2. We have setup the following
URLS__BASEURL=https://domain/content/
URLS__BASEPATH=/content/

The proxy is not rewriting the path the at all. It is forwarding https://domain.com/content/ directly to the squidex instance.

Squidex is returning an asset url (correctly as)

/content/api/assets/test/Guid/filename.pdf

The angular front end has the <base href="/content/" /> in the header.

Uploading an asset works correctly, however viewing or modifying the asset is sending requests to https://domain.com/content/content/api/apps/test/assets/GUID?checkReferrers=true

When viewing an asset directly in the browser and removing the second /content/ path it works fine.

I have tried multiple different combinations oif BASE_URL, BASEPATH (with and without). Seems the only issue that I can find is the UI adding the /content/ part to the URL.

Please let me know if I can provide any more details.

Cheers,

Can you show one example asset how it is returned in the Browser network log? Just one please

This topic was automatically closed after 2 days. New replies are no longer allowed.