Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialMatt Thompson
23,413 Pointsparent URL repeating for child Links /courses/courses/courses/courses/courses/css
Everything works.. However each time the child URL is clicked the parent URL repeats itself.
http://localhost:8080/courses/courses/courses/courses/courses/courses/courses/css
<Route path="courses" component={Courses}>
<IndexRedirect to="html"/>
<Route path="html" component={HTML} />
<Route path="css" component={CSS} />
<Route path="javascript" component={JavaScript} />
</Route>
<ul className="course-nav">
<li><Link to="courses/html" activeClassName="active">HTML</Link></li>
<li><Link to="courses/css" activeClassName="active">CSS</Link></li>
<li><Link to="courses/javascript" activeClassName="active">JavaScript</Link></li>
</ul>
Matt Thompson
23,413 PointsMatt Thompson
23,413 PointsSolved my own problem. I swapped the initial browserHistory import for the code below.