SharePoint HTML Editor Field Control Converts Relative URL to Absolute URL -


Put a relative URL (no server name) in the HTML editor and save the page URL is a complete URL (initially added Is).

This content is a problem to grow in our production environment from the platform because the server names are different.

The exact same scenario is common when using the Content Editor Web Part, and Microsoft has published it right here:

Solution Custom ASP.NET 2.0 The control creates the adapter

But we are using the HTML Editor field control, not the Content Editor Web Part.

What could be the only way to change the behavior of a Web Part used?

Has anyone else met this problem and solved it? No answer was found in a Google search, only very desperate user and abandoned forum threads, in which it was one on stack overflow a year ago:

Thank you very much.

You can enter a little javascript in the link,

  & lt ; A href = "javascript: location = 'page.aspx';" & Gt; Link & lt; / A & gt;  

or

  & lt; A href = "#" onclick = "location = 'page.aspx';" & Gt; Link & lt; / A & gt;  

It has not tried it, but it can work.


Comments