Hey all! Any idea how to implement anchor links on...
# suitecommerce
e
Hey all! Any idea how to implement anchor links on the homepage? We are using anchor links on other landing pages and it seems to work fine by using HTML fragments(for example: www.homepage.com/landing-page#sectionID However, on the homepage, this URL structure do not work. For example, when I go to www.homepage.com#Products (anchor link to a specific homepage section), it automatically converts this URL to www.homepage.com#Products/Products (which is a URL of another landing page). When I checked this on ChatGPT, this is what I got: "To stop this changing URL behavior and preserve the hash in the URL, you would need to modify the routing configuration in your SuiteCommerce implementation. However, please note that modifying the default routing behavior may have implications for the functionality and user experience of your website. To achieve this, you would need to consult the SuiteCommerce documentation or refer to the specific implementation details of your SuiteCommerce version. The process of modifying the routing behavior can vary depending on the version and customizations made to your SuiteCommerce implementation. It is recommended to refer to the SuiteCommerce documentation or consult with SuiteCommerce developers or experts who are familiar with the specific version and customizations of your CMS to properly modify the routing behavior and achieve the desired URL structure while preserving the hash in the URL."
s
lol at ChatGPT
Well, at least the first paragraph is useful
The short answer is that they're not supported because of how Backbone hijacks the hash symbol for its own purposes
If you really want it then you'll need to find a custom JS solution online