Free

Same URL Reload Patch

$0

Categories: , , ,

Description

Prevents Unnecessary Reloads

A lightweight patch that prevents unnecessary page reloads when clicking links that point to the same URL. Instead of reloading the page, it moves smoothly to the top or to the specified anchor only when needed.

When navigating to the same URL (treating paths with or without a trailing slash as identical), the behavior is optimized based on the presence of a hash. Without a hash, the page scrolls to the top; with a hash, it moves to the corresponding anchor and updates the URL appropriately. UI control links such as “#” and “#!” are handled as usual and will not trigger unintended reloads.

Specific hashes used by themes or plugins for UI state management — such as WooCommerce tabs — are treated as reserved and are not interfered with by default. If necessary, you can switch to a mode that keeps these hashes in the URL (code modification required).

Designed to preserve the existing behavior of themes and plugins, this patch quietly removes the frustration caused by same-URL clicks. It adds no extra features — only a focused fix. It is designed to work seamlessly across most WordPress sites.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.