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

Homepage will be redirected to the wrong URL under certain condition #542

Open
jts83171198 opened this issue Dec 28, 2021 · 0 comments
Open
Labels
for triage An issue we've not yet triaged

Comments

@jts83171198
Copy link

Configuration

  • Operating system with its version:
    Windows 10 Pro 10.0.19043

  • Browser with its version:
    Not relevant to this bug. I use Edge and Brave browser on Windows 10

  • Hugo version:
    hugo v0.88.1-5BC54738+extended windows/amd64 BuildDate=2021-09-04T09:39:19Z VendorInfo=gohugoio

  • Tranquilpeak version:
    0.5.3-Beta

  • Do you reproduce on https://tranquilpeak.kakawait.com demo?:
    Nope. Must be reproduced on my local environment with certain configuration

Actual behavior

Login to the hugo server (Localhost:1313), the posts displayed are from another URL (in this case, URL="/products").
The "pages" in "/products" were displayed like "posts", sidebar was hidden, clearReading enabled and counted in categories and tags.
The posts in "/posts" cannot be found in homepage and not even in archives/categories, they appeared missing.

Expected behavior

Login to the hugo server (localhost:1313), the articles displayed are from URL="/posts" and can be found in archives/categories.
The pages in "/products" will not be displayed after I first login to my hugo server and only be displayed when I click the link in sidebar. They must behave like "page", not counted in categories/tags and skip clearReading=true parameter in config.toml .

Steps to reproduce the behavior

  1. Use original hugo-tranquilpeak-theme configurations
  2. Modify config.toml and add [menu.item] pointing to "/products" folder
    [[menu.main]]
    weight = 5 (not relevant, just use a non duplicate number)
    identifier = "product"
    name = "Products"
    pre = "<i class="sidebar-button-icon fas fa-lg fa-store" aria-hidden="true">"
    url = "/products"
  3. make sure the number of "pages" inside "/products" folder are more than "posts" inside "/posts" folder.
    For example, 3 pages in "/products" folder and 2 posts in "/posts" folder
  4. Use "hugo server" to start the hugo server
  5. User browser to login "localhost:1313"
@kakawait kakawait changed the title [BUG] Homepage will be redirected to the wrong URL under certain condition Homepage will be redirected to the wrong URL under certain condition Dec 28, 2021
@kakawait kakawait added the for triage An issue we've not yet triaged label Dec 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for triage An issue we've not yet triaged
Projects
None yet
Development

No branches or pull requests

2 participants