如何处理Phoenix重定向和路由器反应?

时间:2017-08-08 07:30:28

标签: reactjs react-router elixir phoenix-framework

我使用Phoenix进行服务器端渲染。当确认Phoenix重定向到/ authentication#/ ConfirmSuccess时,如此代码

defp is_confirm_code_success(conn, {:ok, res}) do
 redirect conn, to: "/authentication#/ConfirmSuccess"
end

但是在反应中我无法路由到/ authentication#/ ConfirmSuccess。

<Route exact path="/authentication#/ConfirmUnSuccess" component={ConfirmSuccess} />

总是指向/ authentication。

0 个答案:

没有答案