All dynamic pages always render the same template

All dynamic pages always render the same template

1 post / 0 new
fhchen@tw.ibm.com's picture
fhchen
Points: 0
All dynamic pages always render the same template

Hi,

I'm using Acquia dev desktop to create my Drupal site. My environment is Drupal 8.3.7. I encounter a problem that all dynamic pages always render the same template if the user doesn't log in. If the user has logged in, every dynamic page works well. Below is my structure.

/theme/my_theme/templates/abc/path1/page--abc--path1.html.twig
/theme/my_theme/templates/abc/path2/page--abc--path2.html.twig
/theme/my_theme/templates/abc/path3/page--abc--path3.html.twig

When I access the following links, I always got "http://drupalsite/abc/path1?id=1".
http://drupalsite/abc/path1?id=1
http://drupalsite/abc/path2?tag=abc
http://drupalsite/abc/path3?q=def

Please help! Thank you.

Status: 
Unresolved