Skip to main content

message_url_str

Function message_url_str 

Source
pub fn message_url_str(email: &EmailInfo, config: &Config) -> String
Expand description

Returns the relative URL string for a message, including subdirectory if applicable.

When config.current_output_subdir names the same folder the message belongs to, the page being rendered already lives inside that folder, so the subdir prefix is omitted (otherwise e.g. a page at 2025/index.html would link to 2025/0001.html, which the browser resolves to the non-existent 2025/2025/0001.html).