JSFiddle - React, Tailwind, and code Playground

by big_smile

HTML

<input type='text' id='productsku' />

JavaScript

document.getElementById('productsku').value=location.pathname;