wordpress-mobile / WordPress-Editor-Android

⛔️ [DEPRECATED] A reusable Android rich text editor component.
GNU General Public License v2.0
188 stars 50 forks source link

ViewPostFragment does not resolve relative urls (patch added) #113

Open bummytime opened 9 years ago

bummytime commented 9 years ago

Original issue: https://github.com/wordpress-mobile/WordPress-Android/issues/65

In my blog, I use relative URLs. This is the case for image URLs and for anchors leading into my blog. I use it anywhere, where I can, so my blog will work after a global domain change, too. But the Client is not able to resolve them. Images are missing and links are opened with ​file://.. instead of ​http://blog/ .. I'll add an image of my post view before my patch, a screenshot after my patch and the patch itself, that resolves the problem.

Patch is here: http://android.trac.wordpress.org/ticket/257

rachelmcr commented 8 years ago

I tested this in the new editor (Nexus 9, Android 6.0.1, alpha-5) and confirmed it is still an issue there. If an image uses a relative URL, it will appear broken in the editor. (Links that use relative URLs will also fail to open the correct URL if you select them in the post preview.)