Sitemap not replacing the url
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 28/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- nextjs, react, typescript, wordpress
- 领域
- full-stack, web-dev
调研方向
Start by inspecting the mentioned sitemap.xml.tsx and faust.config.js files, then compare the Yoast-generated sitemap URLs with the Faust frontend URLs using the listed package versions. Reproduce the blank-list behavior when replacing the WordPress URL. Done means the sitemap remains populated and its links use the intended frontend URLs.
由索引模型根据 Issue 内容生成。
描述
Description
I'm trying to update the url on the sitemap links, but with no luck, neither from the WP or the FE.
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.
But, then, when I try to replace on the WP the link, the page returns a blank list, so I removed the replace function.
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
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
- 主要语言
- TypeScript
- 星标
- 1.6k
- 派生
- 155
- 平均合并
- 1 天 18 小时
- 30 天内合并 PR
- 20
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
wpengine/faustjs 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 70/100
wpengine/faustjs#2383 · 2 个 reaction ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
wpengine/faustjs#2308 · 1 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 68/100
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 72/100
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 84/100
diegosouzapw/OmniRoute#14869 ·
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 94/100
维护者通常 1 天内回复
-
status: waiting triage
难度 2/5 1-3 小时 新手友好度 84/100
freeCodeCamp/freeCodeCamp#70412 ·
维护者通常 1 天内回复
-
Mend: dependency security vulnerability untriaged
难度 1/5 1 小时以内 新手友好度 88/100
opensearch-project/OpenSearch-Dashboards#12816 ·
维护者通常 1 天内回复