Skip to content

Commit 45b61ba

Browse files
add a comment
1 parent b86acd1 commit 45b61ba

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

node_package/src/serverRenderReactComponent.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ function processServerRenderHash(result: ServerRenderResult, options: RenderOpti
4141
const redirectPath = redirectLocation.pathname + redirectLocation.search;
4242
console.log(`ROUTER REDIRECT: ${options.componentName} to dom node with id: ${options.domNodeId}, redirect to ${redirectPath}`);
4343
}
44+
// For redirects on server rendering, we can't stop Rails from returning the same result.
45+
// Possibly, someday, we could have the rails server redirect.
4446
htmlResult = '';
4547
} else {
4648
htmlResult = result.renderedHtml as string;

0 commit comments

Comments
 (0)