Skip to content
This repository was archived by the owner on Jul 19, 2019. It is now read-only.
This repository was 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

Description

@Vamshikrishna209
<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

Activity

  1. merriam commented on Mar 21, 2017

    @merriam

    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 join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions