Rewrite Drupal image URL for REST export

341
March 02, 2017, at 03:56 AM

I'm experimenting using Drupal to serve content to an Angular app. I've got a good bit of experience with Angular but Drupal I'm completely unfamiliar with.

I've got a REST export setup for a new content type I created and I have an image included in the export.

<img src="/sites/default/files/2017-03/imoji.png" width="396" height="398" alt="JQ" typeof="foaf:Image" />

What's the appropriate way to re-write the image URL so I get an absolute path to the image which includes the domain - www.drupalvm.dev? My proof of concept is being served from angular.drupalvm.dev so the browser is looking for the image @ angular.drupalvm.dev/sites/default/files/2017-03/imoji.png.

READ ALSO
Can&#39;t create cookies from the landing page of my localhost website but I can do so from other pages

Can't create cookies from the landing page of my localhost website but I can do so from other pages

I have restarted my machine, and when I started my server, I could no more login to my localhost website from the landing pageBut If I go to the login page I could login

254
Laravel Migrations: Error Exeption No such file or directory

Laravel Migrations: Error Exeption No such file or directory

A few days ago I installed Laravel and I have been working well, however this morning when trying to create a migration I get the following error:

449
Video cropping slider in php (Html,Css ,Jquery) [on hold]

Video cropping slider in php (Html,Css ,Jquery) [on hold]

I Am using ffmpeg for video cuttinghow to get selected video frame starting time and selected end frame time,here I Am facing problem

263
Unable to connect Mssql : SQLSTATE 28000, code 18456 , Connection could not be established

Unable to connect Mssql : SQLSTATE 28000, code 18456 , Connection could not be established

The connection to mssql using php is not happening rightI am getting message as below:

498