1
0
Fork 0
hugo/common/types
Bjørn Erik Pedersen cd7dc7a372 Fix some server rebuild issues for non-HTML custom output formats
The failing test case here is

* A custom search output format defined on the home page, marked as `noAlternative` and not `permalinkable`
* In fast render mode, when making a change to a data source for that search output format, the JSON file was not refreshed.

There are variants of the above, but the gist of it is:

* The change set was correctly determined, but since the search JSON file was not in the recently visited browser stack, we skipped rendering it.

Running with `hugo server --disableFastRender` would be a workaround for the above.

This commit fixes this by:

* Adding a check for the HTTP request header `Sec-Fetch-Mode = navigation` to the condition for if we should track server request as a user navigation (and not e.g. a HTTP request for a linked CSS stylesheet).
* Making sure that we compare against the real relative URL for non-permalinkable output formats.

Fixes #13014
2025-01-24 17:27:02 +01:00
..
css all: Rework page store, add a dynacache, improve partial rebuilds, and some general spring cleaning 2024-01-27 16:28:14 +01:00
hstring Rename hstring.RenderedHTML => hstring.HTML 2024-09-01 10:04:20 +02:00
closer.go Add js.Batch 2024-12-12 21:43:17 +01:00
convert.go all: Run gofumpt -l -w . 2024-01-28 23:14:09 +01:00
convert_test.go all: Run gofumpt -l -w . 2024-01-28 23:14:09 +01:00
evictingqueue.go Fix some server rebuild issues for non-HTML custom output formats 2025-01-24 17:27:02 +01:00
evictingqueue_test.go Fix some server rebuild issues for non-HTML custom output formats 2025-01-24 17:27:02 +01:00
types.go Adjust error handling in ToMath vs try (note) 2025-01-09 11:47:19 +01:00
types_test.go Add Page.Contents with scope support 2024-08-29 16:45:21 +02:00