Google has recently updated its search documentation to clarify its stance on fragment URLs. The key update is now found in the URL structure documentation, whereas it was previously only mentioned in the JavaScript and mobile sites sections. Google's main advice remains unchanged: avoid using fragments to alter page content.
The search giant emphasizes that it generally doesn't support fragment URLs. Instead, for dynamic content changes using JavaScript, Google recommends using the History API.
An example of a fragment URL that Google discourages is:
https://example.com/#/potatoes
This update underscores the importance of proper URL structure in search engine optimization and reminds webmasters to stay aligned with Google's preferred practices for better indexing and crawling.