Multi site and head-tags

Hello guys

I have been trying a few things on Frontity and so far it’s really cool, but now i have a problem, i expect is something you can help me!

The problem:
I have a multi-site ( one for the spanish language and one for the english language ), recently I’m trying trying to get the head tags that Yoast-seo generates, your plugin is installed in wordpress and the package it’s also installed and updated in the Frontity settings. The thing is that in the spanish site this is working, but its not working on the english site, this is the error:

The error message
TypeError: newBase.replace is not a function
at getNewLink (webpack-internal:///./node_modules/@frontity/head-tags/src/utils/index.ts:13:535)
at transformLink (webpack-internal:///./node_modules/@frontity/head-tags/src/utils/index.ts:13:793)
at eval (webpack-internal:///./node_modules/@frontity/head-tags/src/utils/index.ts:29:38)
at Array.map ()
at eval (webpack-internal:///./node_modules/@frontity/head-tags/src/utils/index.ts:28:64)
at Proxy.map ()
at useFrontityLinks (webpack-internal:///./node_modules/@frontity/head-tags/src/utils/index.ts:19:17)
at getCurrentHeadTags (webpack-internal:///./node_modules/@frontity/head-tags/src/utils/index.ts:39:8)
at Proxy.eval (webpack-internal:///./node_modules/@frontity/head-tags/src/index.ts:4:221)
at eval (webpack-internal:///./node_modules/@frontity/head-tags/src/components/index.tsx:10:88)

system info:

System:

  • OS: macOS Mojave 10.14.6
  • CPU: (8) x64 Intel® Core™ i5-8279U CPU @ 2.40GHz
  • Memory: 26.53 MB / 8.00 GB
  • Shell: 5.3 - /bin/zsh

Binaries:

  • Node: 12.18.0 - /usr/local/bin/node
  • npm: 6.14.4 - /usr/local/bin/npm

Browsers:

  • Chrome: 84.0.4147.135
  • Edge: Not Found
  • Firefox: 79.0
  • Safari: 13.1

npmPackages:

  • @frontity/core: ^1.7.3 => 1.7.3
  • @frontity/head-tags: ^1.0.5 => 1.0.5
  • @frontity/html2react: ^1.3.4 => 1.3.4
  • @frontity/mars-theme: ./packages/mars-theme => 1.4.3
  • @frontity/tiny-router: ^1.2.1 => 1.2.1
  • @frontity/wp-source: ^1.8.1 => 1.8.1
  • bitacora-theme: file:packages/bitacora-theme => 1.0.0
  • frontity: ^1.10.1 => 1.10.1
  • frontity-contact-form-7: ^0.1.7 => 0.1.7

npmGlobalPackages:

  • frontity: Not Found
  • npx: Not Found

The repo : https://github.com/santiago-wq/bitacora.git
The Api esp: http://wp.developbitacora.com/wp-json
The Api eng: http://wp.developbitacora.com/en/wp-json
Vercel: developbitacora.com/

I suppose i have something wrong in the second site, i’m actually working on local, but i put it on vercel. If i need to put more info here just say and i will try to provide it.

Hi @AnkaaStudio

Your repo https://github.com/santiago-wq/bitacora.git doesn’t seem to exist anymore

Nor http://wp.developbitacora.com/wp-json or http://wp.developbitacora.com/en/wp-json links

Did you solve your issue?

Hello @juanma due to somethings(the need for wordpress with https) i had to change the wordpress and vercel domain.
Now the frontity url is: https://bitacora.vercel.app/ (its a demo site)
And the api is on: https://developbitacora.com/wp-json

I didn’t find the solution yet, just another way of doing it. When i activate the head-tags package on frontity the default site works, but the /en/ site doesn’t.

The “Solution” was to just use the array head_tags on a “seo” component and just make all the tags with it, the final result needs a little improvement but it works :slightly_smiling_face:

If you want to try to fix the error with the head-tags i can put the repo public again