HUGO

Hugo vex Theme remove # from URL

Hi everyone, I’m building my first site with Hugo.

I have tried using various themes, but this is the one I like the most

https://demo.themefisher.com/vex-hugo/

I wanted to know how to get rid of the annoying # character that appears at the end of each link in the theme.

Ex :

From

https://demo.themefisher.com/vex-hugo/products/#/

To

https://demo.themefisher.com/vex-hugo/products

Thanks.

Hi @User12344, there is currently no way to disable the #. Let me get back to you about if there is any way to remove it programmatically.

Hi @User12344, the # is added to the URL by the snipcart scripts. You can update the Snipcart component to the latest version and the hash should disappear. Have a look into your config.toml file and replace two of the lines in the plugins section with the following lines:

#################################### Plugins ##########################################

# CSS Plugins
[[params.plugins.css]]
link = "https://cdn.snipcart.com/themes/v3.0.26/default/snipcart.css"

# JS Plugins
[[params.plugins.js]]
link = "https://cdn.snipcart.com/themes/v3.0.26/default/snipcart.js"

Be careful to NOT remove anything, just replace v3.0.3 (currently) with v3.0.26. Let us know if that solves the issue for you!

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