Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sitemap not replacing the url #1978

Open
1 task done
SrPatinhas opened this issue Oct 22, 2024 · 1 comment
Open
1 task done

Sitemap not replacing the url #1978

SrPatinhas opened this issue Oct 22, 2024 · 1 comment

Comments

@SrPatinhas
Copy link

Description

I'm trying to update the url on the sitemap links, but with no luck, neither from the WP or the FE.
image

On the WP, I'm using the Yoast SEO plugin to generate the sitemap, and without any changes, the plugin provides with the normal WP url.
image

But, then, when I try to replace on the WP the link, the page returns a blank list, so I removed the replace function.
image

Although this is related to the Yoast plugin, on the FE, the Faust plugin is not replacing the BE link with the FE link, so this should also be validated from this plugin.

Versions:

"@apollo/client": "^3.10.4",
"@faustwp/blocks": "^4.1.0",
"@faustwp/cli": "^3.1.0",
"@faustwp/core": "^3.1.0",
"@wordpress/base-styles": "^4.49.0",
"@wordpress/block-library": "^8.35.0",
"@wordpress/style-engine": "^1.41.0",
"graphql": "^16.6.0",
"next": "^14.2.3",
"react": "^18.3.1",

For the faust.config.js :

import { setConfig } from "@faustwp/core";

import templates from "@/wp-templates";
import possibleTypes from "@/possibleTypes.json";

import { I18nPlugin, RelayPagination } from "@/plugins";

/**
 * @type {import('@faustwp/core').FaustConfig}
 **/

export default setConfig({
	templates,
	plugins: [new I18nPlugin(), new RelayPagination()],
	experimentalToolbar: true,
	possibleTypes,
	usePersistedQueries: true,
});

the sitemap.xml.tsx
image

I don't know if there is any other option I can try or if I have to change anything to make it work

Steps to reproduce

NA

Additional context

No response

@faustwp/core Version

^3.1.0

@faustwp/cli Version

^3.1.0

FaustWP Plugin Version

1.4.1

WordPress Version

6.6.2

Additional environment details

No response

Please confirm that you have searched existing issues in the repo.

  • Yes
@josephfusco
Copy link
Member

Possibly related #1885

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants
@theodesp @SrPatinhas @josephfusco and others