Focus items in campaigns not working

I am revisiting this issue as I still have not been able to resolve it and it is driving me crazy :-(.

Are there any nginx people that have experienced this?
We are running a focus item inside a campaign and it is not showing up as would be expected.
I am wondering if this might be a nginx configuration problem.
This is what I am seeing in the console

@robm and myself sat and debugged this issue and managed to get things working.

There are two issues here:

  1. In the page visited Mautic is always expecting a trailing slash /
  2. If you are running nginx and have used the configuration set out in linuxbabe article he is only allowing for 1.js to be passed through in the server rules:
   location ~ /(mtc.js|1.js|mtracking.gif|.*\.gif|mtc) {
       # default_type "application/javascript";
       try_files $uri /index.php$is_args$args;

Now my regex is not good enough to mess around with this so all I did was amend to this line the different focus items I wanted to allow to be served by the nginx server as follows:

   location ~ /(mtc.js|1.js|8.js|9.js|7.js|mtracking.gif|.*\.gif|mtc) {
       # default_type "application/javascript";
       try_files $uri /index.php$is_args$args;

I hope this helps others :-). Thanks @robm for assisting and finding the trailing slash :slight_smile: