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
Sometimes, generated canonical is a relative link <link data-n-head="ssr" data-hid="i18n-can" rel="canonical" href="/my-path"> instead of absolute one. Isn't this link always supposed to be absolute?
If I access to the compiled source of my website (view-source:https://mywebsite.com/my-path), canonical is absolute. But if I inspect through Element devtool inspector tab, canonical is relative /my-path.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey, I'm using i18n module for my Nuxt 2 application (SSR).
My configuration is
Sometimes, generated canonical is a relative link
<link data-n-head="ssr" data-hid="i18n-can" rel="canonical" href="/my-path">
instead of absolute one. Isn't this link always supposed to be absolute?If I access to the compiled source of my website (
view-source:https://mywebsite.com/my-path
), canonical is absolute. But if I inspect through Element devtool inspector tab, canonical is relative/my-path
.Beta Was this translation helpful? Give feedback.
All reactions