A simple Firefox add-on that copies and pastes URL paths between tabs, ignoring or preserving the tab's origin (i.e., its scheme, host, and port).
When you need to visit the same path on different domains or ports. For example:
- You're on
https://staging.example.com/products/123?view=details - Click Copy Path to copy
/products/123?view=details - Navigate to
https://production.example.com - Click Paste Path to go to
https://production.example.com/products/123?view=details
Install from the Firefox Add-ons page.
- Open Firefox and navigate to
about:debugging - Click "This Firefox" in the left sidebar
- Click "Load Temporary Add-on..."
- Select the
manifest.jsonfile from this directory
Click the extension icon in your toolbar to reveal two buttons:
- Copy Path — Copies the current tab's path, query string, and fragment (everything after the host)
- Paste Path — Reads the clipboard and navigates to that path on the current tab's origin
You can also use keyboard shortcuts instead of the popup:
- Alt+Shift+U — Copy URL Path
- Alt+Shift+I — Paste Into Path
These shortcuts can be customized in Firefox via about:addons → gear icon → Manage Extension Shortcuts.
activeTab— Access the current tab's URLclipboardWrite— Copy the path to clipboardclipboardRead— Read the path from clipboard
