GetPublii / Publii

The most intuitive Static Site CMS designed for SEO-optimized and privacy-focused websites.
https://getpublii.com
GNU General Public License v3.0
6.06k stars 407 forks source link

[Bug]: Tags that are relative only to hidden post breaks #1336

Closed hubyhuby closed 4 months ago

hubyhuby commented 4 months ago

Operating system

Ubuntu mate 22.04 LTS

Publii version

0.44.4

Post editor

None

Bug description

If you create ONLY pages hidden, the tags are broken. Publii does NOT create the relative folder tags/MY-hidden-post-tag The site is giving 404 each time this tag is mentionned

Steps to reproduce

No response

Relevant log output

No response

WORK AROUND : every tag in the system must be related at least to one NONE hidden post

bobmitro commented 4 months ago

This is not a bug but intended behavior. For posts, "hidden" means removing the post from the loop of posts, making these posts act as a static page. In the case of tags, this would not make sense, therefore marking a tag as hidden results in the tag not being displayed or generated. This is useful for internal tagging of posts.

hubyhuby commented 4 months ago

The site is giving 404 each time this tag is mentionned... which shouldn t happen ;) The tags are some how created...but broken

dziudek commented 4 months ago

@hubyhuby - to avoid this you can hide tag as well: Basic Information -> Hide tag (under tag edit form)