SharePoint Field Forcing Links To be Relative
Ive got Note field with FullHTML turned on. I'm trying to storage an image tag with src that points to the server I'm currently on. I set the field to:
<img src="http://servername/_layouts/images/Company/test.jpg" />
I then immediately try to read the value back out, and I get:
<img src="/_layouts/images/开发者_如何学编程Company/test.jpg" />
SharePoint has graciously stripped it's own servername out of the url to make it relative. This is going out in an e-mail so I need it to be absolute.
Anyone know how to stop this behavior?
This is good behavior, if you migrate the site somewhere else it will still work :) You could probably write an event handler on your list to undo this.
How does the "This is going out in an e-mail so I need it to be absolute." work?
Seems like a custom process? Why don't you add making absolute links there.
精彩评论