Menu links broken, but only when deployed

I’m just getting started, so forgive me if I’m missing a basic build step or CORS something, but locally I don’t have any issues.

when I run hugo serve or hugo serve -e production there is an href value for the about page menu, but when deployed with AWS Amplify, these have no values. I can go to those urls, but the links break on deployment.

I have in my config:
baseURL = ""
but otherwise it’s just a copy of the meme theme example

Any ideas?

When I view the source of your site, I see that the href attribute has no value.

It would be helpful if you provided a link to the public repository for your project.


Let us see your code

Include a link to the source code repository of your project, because we really need the context of seeing your templates and partials to be able to help you. It is trivial to do a quick git clone on your repo, then run hugo server in your project, to help you out. On the other hand, recreating your code from screenshots, or sort of guessing at it, is not.

If you can’t share your repository for whatever reason, consider creating a dummy repo that you can share, which reproduces the problem you’re experiencing.

Of course it would, thank you for getting back so quickly.

You need to build your site with v0.86.0 or later. The pageRef menu entry property was introduced in v0.86.0.

You’re running an older version on AWS.


That was it exactly!

Thank you so much!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.