bedrock icon indicating copy to clipboard operation
bedrock copied to clipboard

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

Open simonwuyts opened this issue 8 years ago • 4 comments

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 avatar Sep 05 '17 09:09 simonwuyts

I recreated the situation in Bedrock core.

Wolfr avatar Sep 05 '17 10:09 Wolfr

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.

xavez avatar Dec 01 '17 15:12 xavez

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

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

Wolfr avatar Dec 13 '17 11:12 Wolfr

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).

Wolfr avatar Dec 14 '17 08:12 Wolfr