elementor / static-html-output

Static HTML Output Plugin for WordPress
https://statichtmloutput.com
The Unlicense
125 stars 35 forks source link

domain names as src/detecteable attributes being detected as internal links #91

Closed leonstafford closed 4 years ago

leonstafford commented 4 years ago

seen in some opengraph meta tags

input:

<meta attr="something" content="MySite.com">

current output:

<meta attr="something" content="https://destinationurl.com/MySite.com">

expected output:

<meta attr="something" content="MySite.com">

likely cause is looking for an extension as part of checking string as possible internal link

solutions?

leonstafford commented 4 years ago

@thegulshan, looks good so far, no more localhost references or rewriting of urls that shouldn't have been in this:

static-html-output-plugin-91-fix-domains-in-strings.zip

thegulshankumar commented 4 years ago

I can confirm, this is resolved.

<meta property="og:site_name" content="Example.com">
leonstafford commented 4 years ago

w00t! Thanks again for all the testing, @thegulshankumar!

thegulshankumar commented 4 years ago

Most welcome! Happy to test more and more to get all these issues sorted fast.