Answers.Body: <p>I've just had this problem. Are you using AWS for your files? </p>
  
  <p>If yes, check your Asset Source "Base URL" does not start with <code>//</code> otherwise the file link in redactor will start with <code>https:////</code> and break (resulting in null). I simply changed this to https:// and Redactor was happy.</p>
  
  <p>Hope that helps.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-05-06T20:07:26.447Z
Answers.Text: No the files were local - but I had the base url beginning with `\\`. Changed as you suggested and the issue is resolved.
Answers.UserDisplayName: mmc501
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-05-06T15:32:25.617Z
Answers.LastActivityDate: 2019-05-06T15:32:25.617Z
Answers.UserDisplayName: Ryan Roberts
Body: <p>I have added the "file" option in my Standard.json file for Redactor.
  Wehn using the Redactor field then I can click on the file button and select the image ok.
  When I view source the file is linked to fine in the html.
  But when I save the entry and go back to view it - the link is stripped out - it just displays: </p>
  
  <pre><code>&lt;a&gt;link text&lt;/a&gt;
  </code></pre>
  
  <p>I have tried disabling Clean Up HTML and Purify HTML on the field options and saving again but still have the same problem - the link is being stripped out.</p>
  
  <p>Anyone have a similiar issue?</p>
  
Tags: <redactor>
Title: Redactor - can't link to files
ThreadText: # Redactor - can't link to files
  
  (Asked by: username_0 on 2019-03-14)
  
  I have added the "file" option in my Standard.json file for Redactor.
  Wehn using the Redactor field then I can click on the file button and select the image ok.
  When I view source the file is linked to fine in the html.
  But when I save the entry and go back to view it - the link is stripped out - it just displays:
  
  ```
  <a>link text</a>
  
  ```
  
  I have tried disabling Clean Up HTML and Purify HTML on the field options and saving again but still have the same problem - the link is being stripped out.
  
  Anyone have a similiar issue?
  
  **Tags:** redactor
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-05-06. Score: 2 | Accepted answer
  
  I've just had this problem. Are you using AWS for your files?
  
  If yes, check your Asset Source "Base URL" does not start with `//` otherwise the file link in redactor will start with `https:////` and break (resulting in null). I simply changed this to https:// and Redactor was happy.
  
  Hope that helps.
  
  > **Comments:**
  > **username_0**: No the files were local - but I had the base url beginning with `\\`. Changed as you suggested and the issue is resolved.  
  
  ---
  
  