Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page states don't work when template file is called index.pug #178

Open
simonwuyts opened this issue Sep 5, 2017 · 4 comments
Open

Page states don't work when template file is called index.pug #178

simonwuyts opened this issue Sep 5, 2017 · 4 comments
Labels

Comments

@simonwuyts
Copy link
Contributor

I tried generating two page states from the following files:

  • index.pug
  • index--empty.pug

The index item in the navigation shows a count bubble, but the states list is nowhere to be found. The project has Bedrock 1.2.1 installed.

screenshot-2017-9-5 statements of work - bedrock demo

When I rename the files to overview.pug and overview--empty.pug everything works fine.

@simonwuyts simonwuyts added the bug label Sep 5, 2017
Wolfr added a commit that referenced this issue Sep 5, 2017
@Wolfr
Copy link
Contributor

Wolfr commented Sep 5, 2017

I recreated the situation in Bedrock core.

@xavez
Copy link
Contributor

xavez commented Dec 1, 2017

Some extra info: if you remove the root index.pug file in /templates/, page states do work for pages that are called index.pug and index--state.pug.

@Wolfr
Copy link
Contributor

Wolfr commented Dec 13, 2017

Interesting, I used that workaround now in [client project].

I can make it part of Bedrock core for now to circumvent this bug.

@Wolfr
Copy link
Contributor

Wolfr commented Dec 14, 2017

Update: the problem if I use that approach is that when I deploy the prototype, the pages called "index" are not accessible on the web version (they are in the local version).

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

No branches or pull requests

4 participants