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

tpl/urls: absURL and absLangURL strip query and fragment #11772

Closed
earthboundkid opened this issue Dec 1, 2023 · 1 comment · Fixed by #11773
Closed

tpl/urls: absURL and absLangURL strip query and fragment #11772

earthboundkid opened this issue Dec 1, 2023 · 1 comment · Fixed by #11773

Comments

@earthboundkid
Copy link
Contributor

What version of Hugo are you using (hugo version)?

hugo v0.120.4-f11bca5fec2ebb3a02727fb2a5cfb08da96fd9df+extended darwin/arm64 BuildDate=2023-11-08T11:18:07Z VendorInfo=brew

Input

{{ "/search/?from=sitelinks&q={search_term_string}" | absURL }}

Expected output

http://example.com/search/?from=sitelinks&q={search_term_string}

Actual output

http://example.com/search/
earthboundkid added a commit to spotlightpa/poor-richard that referenced this issue Dec 1, 2023
earthboundkid added a commit to spotlightpa/poor-richard that referenced this issue Dec 1, 2023
* Add Sitelinks search box

See https://developers.google.com/search/docs/appearance/structured-data/sitelinks-searchbox?from=google

* Fix for gohugoio/hugo#11772

* Break out searchAction

* Move Sitesearch links to bottom; use site.BaseURL

* Yarn format
@jmooring jmooring changed the title urls.AbsURL strips query parameters tpl/urls: absURL and absLangURL strip query and fragment Dec 1, 2023
jmooring added a commit to jmooring/hugo that referenced this issue Dec 1, 2023
jmooring added a commit to jmooring/hugo that referenced this issue Dec 1, 2023
@bep bep closed this as completed in #11773 Dec 4, 2023
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants