How to change the URL a QR Code takes a user to?

I’m using Barcode and QR Code Generator. I have an icon that creates a QR Code when clicked. It works and is set up as below.

Screenshot 2024-05-07 155407

When it’s scanned, it lands on the correct page and displays the correct User’s data. However, using the User’s Link like this means that the User’s Unique ID is included in the URL in the browser’s address bar and I then have to extract that UniqueID in a search (see below) to ensure that it shows the correct User’s data. The User’s Unique ID doesn’t seem a sensible thing to be displaying and looks ugly and unwieldy.

Screenshot 2024-05-07 160121

How can I change things so that the QR Code still lands on the correct User’s page but doesn’t show the User’s Unique ID in the URL?

What’s a better way to do this?

I’m wondering if the “Slug” is the answer but I’ve never used those.

Yeah if you don’t want to use the unique ID then use the slug.

1 Like

Hash the user id using a simple slug formula or some regex.

1 Like