RSSAmplifier

Poolside · Nov 21, 2023

Update current URL's query params non-destructively

0
Sign in to vote or save

This page did not load. You can still read it on the original site — the toolbar below keeps your place in the directory.

Couldn't find a modern vanilla example of how to update the current URL's query params non-destructively, so I wrote this for future reference: // Get current URL const url = new URL(window.location.href); // Update or remove a param colors.length ...

Read on jordanbrennan.hashnode.dev

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.