You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When viewing source of the Greenwood website, the meta tag for og:url is hardcoded to localhost
<meta name="description" content="A modern and performant static site generator supporting Web Component based development"><meta name="twitter:site" content="@PrjEvergreen">
<meta property="og:tile" content="Greenwood"><meta property="og:type" content="website">
<meta property="og:url" content="http://127.0.0.1:8000/">
<meta property="og:image" content="https://s3.amazonaws.com/hosted.greenwoodjs.io/greenwood-logo.png">
<meta property="og:description" content="A modern and performant static site generator supporting Web Component based development">
<meta property="og:title" content="Greenwood"></head>
Details
Given a config like this, I would expect my URL to be used
Wrote a test (after a little refactoring) and confirmed the issue
it('should have our custom config <meta> tag with og:url property in the <head>',function(){constogUrlMeta=metaFilter('og:url');constmetaElement=dom.window.document.querySelector(`head meta[property="${ogUrlMeta.property}"]`);expect(metaElement.getAttribute('content')).to.be.equal(ogUrlMeta.content);});
Build Greenwood With:
Custom Meta Configuration and Default Workspace
Custom Meta Index Page
✓ should output an index.html file within the default hello page directory
✓ should have our custom config <meta> tag with og:site property in the <head>
1) should have our custom config <meta> tag with og:url property in the <head>
✓ should have our custom config <meta> tag with twitter:site name in the <head>
3 passing (5s)
1 failing
1) Build Greenwood With:
Custom Meta Configuration and Default Workspace
Custom Meta Index Page
should have our custom config <meta> tag with og:url property in the <head>:
AssertionError: expected 'http://127.0.0.1:8000/' to equal 'https://www.greenwoodjs.io'
+ expected - actual
-http://127.0.0.1:8000/
+https://www.greenwoodjs.io
Type of Change
Summary
When viewing source of the Greenwood website, the meta tag for
og:url
is hardcoded tolocalhost
Details
Given a config like this, I would expect my URL to be used
related to #92
Did a quick scan of the code, and seems like is due to Greenwood hardcoding / overriding the user provided value perhaps?
Other thought is maybe this function is doing something unexpected?
The text was updated successfully, but these errors were encountered: