Hello,

Alban Dumouilla <alban.dumouilla@...> writes:

> 
> 
> Hi guys, 
> I've put a mezzanine blog in a subdirectory domain.com/blog, served by 
nginx, and all seems to work but the links in TinyMCE. 
> Basically, I'm getting a 404 error on domain.com/displayable_links.js 
where the right file is at domain.com/blog/displayable_links.js.
> 
> This looks like a dynamically generated file, so is there a setting 
somewhere that I might have missed to really tell mezzanine about that 
subfolder? I sites, I have http://www.domain.com/blog
> 

No, the problem is the hardcoded url "/displayable_links.js" in the 
static file "mezzanine/js/tinymce_setup.js". This url is only valid if 
your site is served from "/".

> I for now had to create a 301 redirection through NGINX so that the 
link without /blog redirects to the right file, but it's ugly. 
> 

You could overwrite "mezzanine/js/tinymce_setup.js" with a version with 
the valid url for your setup, but this isn't any better than yout work 
around.

> Thanks!
> 
> 
> 
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to