It seems like there is currently no way to get redactor to return a root-relative URL even when the site's base URL is set to /. Secondly, even with the site's base URL set to /, redactor still returned the fully-qualified absolute URL, but this time using the Craft CMS hostname. My front-end is a completely different web application to the headless Craft CMS web application and they both have different domain names. the URL it loaded was instead of ), which is not correct in this scenario/architecture and resulted in a 404 error on the Craft CMS side. As I anticipated, setting the site's base URL to / made the view/preview button load the entry page using the Craft CMS hostname instead of the front-end hostname (i.e. Unfortunately, it doesn't solve the problem. Plugins & versions: Redactor I just tested your suggestion of using a / as my site's base URL value. Please let me know if this is a redactor issue and I will raise a new issue in the redactor repo. I thought I'd ask here first in case it was a configuration issue with my site's base URL. #Craft cms redactor fullHaving an absolute URL will likely cause the SPA to do a full refresh instead of just updating a part of the view.Īpologies if this is a redactor issue. not save the part)? Like this I mentioned above, the CMS is running in headless mode as a back-end to a SPA. When I insert a link in the redactor field to another article entry, I can see that it saves the tag with an href value of do I get redactor to save a relative URL (i.e. The site has a section/entry type called Article which has a Matrix field with a Redactor field within it. I have a Craft CMS site running in headless mode. NOTE: I know the title says "Redactor", but this could be an issue with how my craft default site is set up.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |