Nginx and Docker issue

I read this post with interest and tried out some of the suggestions made there but I still have ":null" appearing in my links. One thing I did not mention above is that if I have over a link and refresh the page, the path initially seems correct (ie. no null included "https://pd-new.example.com/about-us") but then I see in the console

https://pd-new.example.com/resolveuid/undefined

And after that the path changes to include the ":null" for example "https://pd-new.example.com/:null/about-us". So somehow the resolveuid call is not being sent to the backend.