Everything after the “?” symbol can be removed without issue
https://youtube.com/watch?v=XfELJU1mRMg >>> https://youtube.com/watch
this isn’t a shitpost this community is being dragged through the mud by non-shitposts
Actually, it’s a a bit of a shitpost. Anything after the ‘?’ is an argument for the html request. Can and is used for tracking, but is also used for website functionality.
There are URL shortener Apps on F-Droid. Simple share the link to this app and get a short link without this privacy mess.
Check out this cool video
Time to put new privacy laws in place or force politicans to do it
This is kinda true but also kinda fear mongering. UTM parameters are just to track where you clicked the link from. They’re usually not dynamic, and don’t contain anything about you personally. The example in the screenshot
utm_source=newsletter
is probably added to all links in a company’s newsletter email, so they can tell that people get to the page via the newsletter.I did not know what those were for before seeing this but I remeber seeing “source=chat_gpt” next to a link to a source in a news article and thought that it was odd.
If you’re still using firefox, right click -> copy clean link. works most of the time.
I use an app called “Leon URL Cleaner” from F-Droid. Does a really good job removing tracking params, and only adds one extra step to sharing a URL.
There’s also URLCheck:
I usually just do it because shorter links look better than 30 lines of crap
Right? The fact that this is an extra bit of tracking information I don’t want makes this an easy sell for anyone looking for a reason to do this, but for me it’s because it just makes links uglier.
Everything after the ? can be safely removed
This is usually true but but not always. There’s often times when a URL query like that is used to choose the page to load. I believe wordpress does this
Only on “I have really bad SEO” kinds of blogs. Query strings have been considered a negative thing for many many years.
whuh? querystrings are integral to things like pagination. they are by no means a negative thing.
I wouldn’t call it integral, pagination query parameters can be in the url params just as easily as in the querystring
Pagination query params can be in the URL params, but that’s not normal at all. They’re pretty much always use query params, and it’s very reasonable to do so. Filtering, search, and pagination all typically go in query params.
that’s very hard to make idiomatic, and if it’s in the querystring it’s easier to change manually because you can annotate each entry more easily.
Not everybody cares for SEO BS
WordPress uses a taxonomic system you choose with a mix of the Settings page and how you organize your template hierarchy. To my knowledge there is no out of the box query url functionality in the core system.
There is.
?s=
for a search, and you can combine it with other parameters such as date or taxonomy terms.
Sometimes I’ll post a picture straight from a duckduckgo search, and it doesn’t work without the stuff after the ?
(I’m also not sure how long the url is valid for, so I try not to do this too often)
Also leon
So annoying to always have to find out how far you can trim a URL before it breaks.
I mean that’s part of the fun of surfing the web, you get to play a fun puzzle game of “How to Lobotomize a URL”
Typically anything after the “?”. That’s where the parameters live. There are always exceptions.
There are many URLs that require parameters to load a resource (and aren’t necessarily tracking anything). With YouTube’s non-shortened links (for example), the video ID is after the
?
, but is usually (but not always) immediately after.This:
https://m.youtube.com/watch?v=dQw4w9WgXcQ
Can be shortened to:
https://www.youtube.com/watch?v=dQw4w9WgXcQ
But no shorter.
(actually, you can remove the
www.
but that’s not relevant for illustrating my point)LOL: thank you Voyager or Lemmy.world for stripping it even from my inline code.
Here’s what I was trying to post:
Nice try.
Happy cake day
There should be an extension that does this
Yep!
Only thing I want to see after a ? in a youtube url is t=4m20s
personally i like v=aO82NftCga to be in there as well
Most of my internetin’ is done on mobile, because I’m very rarely at my desk, and when I am, I’m normally working on school. Are there any solutions to handling this easily on mobile without having to manually erase part of the pasted link when I go to send it to someone? A few people have mentioned that’s it’s not 100% guaranteed that the anything after ? Is worthless, so I don’t know how to ensure I’m not breaking a link
Firefox mobile has plenty of add-ons that will just remove it for you
I posted a comment above, but if you’re android, check out leon. Super easy to use.