To create a "go back" link as a breadcrumb in Webflow, you can use a combination of custom code and dynamic fields. Here's how you can achieve it without running into errors:
1. First, create a new field in your CMS collection (if you're using one) to store the URL of the "parent" page. Let's call this field "Parent Page URL".
2. In your collection template page (or any page where you want the breadcrumb to appear), add a custom code embed element where you want the go back link to be. This can be done by dragging and dropping the "Embed" element onto the page.
3. Open the custom code embed element and insert the following code:
```html
Go Back
```
4. Next, style the breadcrumb link to match your design. You can do this by either adding a CSS class to the "Embed" element and styling it in the Webflow Designer, or by adding custom CSS code.
5. Finally, you need to populate the "Parent Page URL" field for each page in your collection. To do this, navigate to each item in your collection, edit it, and provide the URL of the parent page in the "Parent Page URL" field. Make sure the URLs are accurate and properly formatted.
With this setup, the "Go Back" link will dynamically pull the URL from the "Parent Page URL" field of the current page in the collection. Clicking on the link will take the user back to the previous page without generating any errors.
Note: If you're not using a collection and want to link back to the previous page programmatically, you can use JavaScript to achieve this. However, it's important to ensure that the logic for determining the previous page is reliable, as this can vary depending on the website structure and user flow.