- Introduce a new before_action to set the default canonical URL - Implement set_canonical_url method to manage canonical URLs - Update application helper to use the canonical URL for meta tags This change enhances SEO by ensuring that the canonical URL is set correctly for each page, preventing duplicate content issues. The canonical URL is derived from the original request URL, excluding query parameters. |
||
---|---|---|
.. | ||
concerns | ||
application_controller.rb | ||
arts_controller.rb | ||
cities_controller.rb | ||
home_controller.rb | ||
rss_controller.rb | ||
sitemaps_controller.rb | ||
weather_arts_controller.rb |