Code Monkey home page Code Monkey logo

Comments (9)

somratpro avatar somratpro commented on June 19, 2024 1

So a star to the repository would be fantastic.

from parsa-hugo.

somratpro avatar somratpro commented on June 19, 2024

Hello @ftorres16

Thanks for using our template, you can see the latest build of our theme is performing well on search https://themes.gohugo.io//theme/parsa-hugo/

I think you messed with your baseURL, that's why this is happening to you.

from parsa-hugo.

ftorres16 avatar ftorres16 commented on June 19, 2024

Hello @somratpro

Thanks for your reply.

I double checked and the baseurl field in config.toml and it matches the URL of my blog with the same formatting as in example site.

I also inspected the search form in the HTML for the example you provided and compared it to my own. They match perfectly, aside from the URL in "action".

I inspected the requests on my browser and my blog is sending the request to https://<blog>.com/search?s=test (same as on your demo).

However, on my blog I get a 302 response with the header location /search/ that takes me back to an empty search page.

I also noticed that /search/?s=<search_term> works fine on my website, but not /search?s=<search_term>.

I figured it could be because my folder structure was content/search/_index.md and the example site had content/search.md, but I made the change and it is still not working.

from parsa-hugo.

somratpro avatar somratpro commented on June 19, 2024

Well, can you share your repository with me?

from parsa-hugo.

ftorres16 avatar ftorres16 commented on June 19, 2024

I sent you an invite

from parsa-hugo.

somratpro avatar somratpro commented on June 19, 2024

try to add / at the end of your baseURL. baseurl = "https://lapolino.com/"

from parsa-hugo.

ftorres16 avatar ftorres16 commented on June 19, 2024

When I do that and search I get two // after .com but none between the search and the ?s=<term>. So instead of an empty search page I get 404

from parsa-hugo.

somratpro avatar somratpro commented on June 19, 2024

Ok, then remove it. and I give an update to the theme, try it now

from parsa-hugo.

ftorres16 avatar ftorres16 commented on June 19, 2024

It worked, thanks!

from parsa-hugo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.