Skip to content
This repository has been archived by the owner on Jul 19, 2019. It is now read-only.

On using browser History , Directly routing to a inner link shows as Cannot GET /about #309

Open
Vamshikrishna209 opened this issue Mar 21, 2017 · 1 comment

Comments

@Vamshikrishna209
Copy link

Vamshikrishna209 commented Mar 21, 2017

<Router history={browserHistory}>
	<Route path="/" component={App}>
		<Route path="/home" component={Home}/>
		<Route path="/repos" component={Repos}>
			<Route path="/repos/:userName/:repoName" component={Repo}/>
		</Route>
		
    	<Route path="/about" component={About}/>
	</Route>
	{/* add the routes here */}
    
</Router>

Using this , By loading the page with Url :- http://localhost:8080/about is giving Error
How can I solve this while using Gulp

@merriam
Copy link

merriam commented Mar 21, 2017

Could you give a bit more information? For example, which step you are on and what error you get?

DId you do the step yet where you add '--history-api-fallback' to package.json? There is one section that says "now try it. See, it doesn't work yet."

Or is your question about doing the equivalent using Gulp instead of WebPack?

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

No branches or pull requests

2 participants