Closed welpo closed 11 months ago
Hello @welpo, can I get this issue to solve?
Hello @welpo, can I get this issue to solve?
Certainly! Thanks, Joberth :)
@joberthrogers18 don't hesitate to reach out if you have any questions!
@welpo I opened a PR fix the bug showed in this issue.
Bug Report
Environment
Zola version:
0.17.2
tabi commit: be218c0b6c521588cf57c1aa9d90db88aa24e801
Expected Behavior
When a user sets an external URL in the
footer_menu
configuration, the generated URL in the footer should correctly point to the external URL. It should not be treated as a relative URL.Current Behavior
Currently, external URLs specified in
footer_menu
are treated as relative URLs. This results in incorrect URL paths for external links. For example, specifyinghttps://example.com
inconfig.toml
underfooter_menu
generates a link that points tohttp://127.0.0.1:1111/https://example.com
, which is incorrect.Steps to Reproduce
config.toml
and add an external URL in thefooter_menu
section. For example:This issue can easily be fixed with a Regex in the Tera template by adding an additional check for absolute URLs (i.e., those that begin with
http://
orhttps://
) and handling them differently from relative URLs.