继承了一个 ReactJS 应用程序,它有抛出 404 错误的“卫星应用程序”

问题描述 投票:0回答:0

所以...我基本上没有使用 Node/React 的经验,但是我正在处理的(实时)站点的一部分要求我至少学习如何对其进行故障排除。

有 2 个 React 应用程序正在运行,或多或少:http://beta.ccmixter.orghttp://dig.ccmixter.org 还有一些称为“卫星”登陆页面的东西(不起作用)。他们抛出 404,例如 http://beta.ccmixter.org/stems

它应该显示一个界面,用于浏览和过滤用户上传的音乐片段。 相反,它只是说“未找到”

项目的“stems”子目录只包含 index.html 和一些图像,所以我认为它是在总体应用程序的路由系统中被破坏的东西。我无法在 React 论坛中找到这种“卫星”方法的任何其他示例......

感谢所有帮助,我一定会添加您认为有帮助的任何信息。 (是的,一旦它们起作用,我们就会让它们支持 HTTPS)

编辑: 似乎有 many 定义路线的地方。我只是 grepped,这些看起来很相关:

app/routes/ccmixter/index.js:import stems     from  '../stems/browse';
app/routes/ccmixter/index.js:    stems,
app/routes/stems/search.js:import Search               from '../../components/stems/Search';
app/routes/stems/search.js:  path: '/stems/search',
app/routes/stems/browse.js:import Browse           from '../../components/stems/Browse';
app/routes/stems/browse.js:import SubNav           from '../../components/stems/SubNav';
app/routes/stems/browse.js:const stems = Object.assign(Browse,{
app/routes/stems/browse.js:    return '/stems' + store.queryString;
app/routes/stems/browse.js:module.exports = stems;

提到的所有路径都得到 404(/stems/browse、/stems/search 等)...

node.js reactjs http-status-code-404 satellite
© www.soinside.com 2019 - 2024. All rights reserved.