lexi icon indicating copy to clipboard operation
lexi copied to clipboard

About page does not load

Open simonh1000 opened this issue 8 years ago • 3 comments

I think I followed the instructions correctly, as I do have the hello world post showing.

I then created an About page with slug about, but when I click on /about i still get the main blog list. Note that I am using multisite, and the page is to be found at http://localhost/<newwork_name>/about/, although I can't see why that would mess up wp-json if other posts show.

simonh1000 avatar Mar 13 '16 16:03 simonh1000

I am also unable to get the about page to load. Seems like a routing problem.

I am able to pull in a list of posts from an external website using wp-url.js

Any fix for this?

nolaandy avatar Aug 05 '16 19:08 nolaandy

Same error is there a fix for this?

sjoerdvalk1991 avatar Jan 17 '17 22:01 sjoerdvalk1991

Make sure you are putting the dynamic routes after the about route, so try:

<Route path="/" component={LexiTheme}>
    <IndexRoute component={PostsContainer} />
    <Route path="about" component={AboutPageContainer} />
    <Route path=":pageNum" component={PostsContainer} />
    <Route path=":year/:month/:name" component={PostContainer} />
</Route>

thebailers avatar Jan 17 '17 22:01 thebailers