Forum software messing up URLs? - Page 1
Forum section: electronics / general

author: tooki
author_rank: Super Contributor
timestamp: October 13, 2019, 11:20:49 am
content: In two recent posts already I’ve had the forum software totally mess up URL tags. It’s erroneously inserting another set of url tags around the URL that’s already properly wrapped inside the opening URL tag. I think it could have to do with the URLs using https. So here’s some tests with a URL that will redirect to https if http is used.1. Naked http URL (inserted without tags):http://www.ezv.admin.ch/ezv/de/home/themen/alcohol/spirituosen_werbung/werbeleitfaden.html2. Naked https URL:https://www.ezv.admin.ch/ezv/de/home/themen/alcohol/spirituosen_werbung/werbeleitfaden.html3. http URL used in url tag:http://www.ezv.admin.ch/ezv/de/home/themen/alcohol/spirituosen_werbung/werbeleitfaden.html]here’s the link4. https URL used in url tag:https://www.ezv.admin.ch/ezv/de/home/themen/alcohol/spirituosen_werbung/werbeleitfaden.html]here’s the link

author: tooki
author_rank: Super Contributor
timestamp: October 13, 2019, 11:27:14 am
content: OK, so https has nothing to do with it. But it illustrates the problem perfectly.This is the syntax entered in 4:Code:[url=https://www.ezv.admin.ch/ezv/de/home/themen/alcohol/spirituosen_werbung/werbeleitfaden.html]here’s the linkOne more test: does a spurious space in the url tag matter:5.No space in the tag6.https://www.ezv.admin.ch/ezv/de/home/themen/alcohol/spirituosen_werbung/werbeleitfaden.html]Space in the tag after the equal signIn the preview, both produce the correct output, let’s see what happens when it posts.

author: tooki
author_rank: Super Contributor
timestamp: October 13, 2019, 11:30:03 am
content: OK, that seems to be it. It looks like iOS 13 changed the cut-and-paste algorithm slightly and now inserts a space automatically before a pasted URL in a body text box. (I’ll have to check the settings to see if it can be disabled.) But it’s crazy that the preview handles it correctly, but it gets borked when actually posted. (To me it’s bonkers that the forum software renders fundamentally differently in the preview than in the actual post. Why wouldn’t it use the same code path?!?)

author: tggzzz
author_rank: Super Contributor
timestamp: October 13, 2019, 11:42:36 am
content: Quote from: tooki on October 13, 2019, 11:27:14 amCode:[img width=100]http://...worksCode:[img width=100]http://...fails

author: Fraser
author_rank: Super Contributor
timestamp: October 13, 2019, 11:45:20 am
content: Tooki,Thank you for this post. I thought it was “just me”I have been having problems including URL)s in posts for some time. I am using an iPad running iOS 13 and I am finding that when I post a URL, only part of it is ‘captured’ as a URL by the forum (blue text) and the rest of it is ignored and shown as plain black text. Clicking that link then produces a 404 error. Most annoying. I have resorted to using my Windows 7 laptop for posting URL’s now.Fraser

author: Fraser
author_rank: Super Contributor
timestamp: October 13, 2019, 11:52:44 am
content: An example of the issue I was having with URL’s is shown in reply 2 in this thread. The end of the URL is ignoredhttps://www.eevblog.com/forum/thermal-imaging/where-to-buy-old-flir-cores/I have cut and pasted the example post here......—————————————I am feeling helpful.....https://www.eevblog.com/forum/thermal-imaging/flir-micron-a10-160-x-120-hiding-in-disguise-bought-for-$100-)/Edit... Darn it my cut'n'paste URL is not working in this post. you will have to copy it manually into your browser.Fraser——————————Note that the “$100-)/“ is ignoredFraser

author: BravoV
author_rank: Super Contributor
timestamp: October 13, 2019, 11:56:22 am
content: Quote from: Fraser on October 13, 2019, 11:52:44 amTry ->HERE jump to 2nd postCode:[url=https://www.eevblog.com/forum/thermal-imaging/where-to-buy-old-flir-cores/msg2658639/#msg2658639]HERE jump to 2nd post

author: Monkeh
author_rank: Super Contributor
timestamp: October 13, 2019, 11:58:00 am
content: Quote from: Fraser on October 13, 2019, 11:52:44 amhttps://www.eevblog.com/forum/thermal-imaging/flir-micron-a10-160-x-120-hiding-in-disguise-bought-for-$100-)/With certain characters you need to use tags or the parser breaks a little.

author: Fraser
author_rank: Super Contributor
timestamp: October 13, 2019, 11:58:11 am
content: Thanks BravoVI am demonstrating how inept I am at posting anything but simple stuff on forumsFraser

author: Fraser
author_rank: Super Contributor
timestamp: October 13, 2019, 11:58:57 am
content: Thanks MonkehFraser

author: BravoV
author_rank: Super Contributor
timestamp: October 13, 2019, 11:59:56 am
content: Quote from: Fraser on October 13, 2019, 11:52:44 amFLIR Micron A10 160 x 120 hiding in ‘disguise’ bought for $100Code:[url=https://www.eevblog.com/forum/thermal-imaging/flir-micron-a10-160-x-120-hiding-in-disguise-bought-for-$100-)/]FLIR Micron A10 160 x 120 hiding in ‘disguise’ bought for $100 :)

author: wilfred
author_rank: Super Contributor
timestamp: October 14, 2019, 12:32:36 am
content: Quote from: Fraser on October 13, 2019, 11:45:20 amThis problem is probably as old as the forum itself. And it definitely isn't just you @Fraser.

author: IanB
author_rank: Super Contributor
timestamp: October 14, 2019, 12:47:44 am
content: Quote from: Fraser on October 13, 2019, 11:45:20 amThat sounds very painful. I explored using an iPad for posting on forums for a while but I gave up on it. It is just too inconvenient and frustrating compared to the control you have using a PC screen with keyboard and mouse. A Bluetooth keyboard on the iPad only helped a little.IMHO iPads are good for reading and browsing, but are not good for content creation.

author: tggzzz
author_rank: Super Contributor
timestamp: October 14, 2019, 07:22:41 am
content: Quote from: IanB on October 14, 2019, 12:47:44 amExactly.That can be extended to Android tablets as well.I have never considered using an external keyboard with a tablet; it would be like putting lipstick on a pig.

author: tooki
author_rank: Super Contributor
timestamp: October 14, 2019, 11:20:05 am
content: Quote from: tggzzz on October 14, 2019, 07:22:41 amI actually use a bluetooth mechanical keyboard with my iPad frequently. Thanks to a nerve problem and RSI, my hands don't tolerate most keyboards (never mind onscreen typing), but the iPad is often the best tool for many tasks, like messaging. (Facebook messenger on iOS is far superior to using the FB website on a computer.)I totally agree that an iPad is not an ideal content creation device (though iOS 13 improves this), but in some situations it's quite good. I suspect its content creation strong suit is illustration (where the Apple Pencil manages to far exceed the venerable Wacom tablets in responsiveness). It's certainly not long-form text...I often end up with my computer, iPad, and iPhone around me when working, as I use each to compliment the others. I like to let each tool do its specialty best.

author: Fraser
author_rank: Super Contributor
timestamp: October 14, 2019, 11:35:41 am
content: Totally agree with the challenges of content creation on an iPad. I get very annoyed with mine auto correcting technical words etc to other words and have to keep checking that it is not changing words in my posts (I can turn auto correct off though) The on-screen keyboard is only good for short posts like this really. As for ‘cutting and pasting’ plus image handling, the iPad sucks in my experience. I far prefer to manipulate images, resize them etc on my laptop.I consider my iPad a window on the internet and a brilliant search tool for finding information. Content creation does not appear to be its forte.Fraser

author: tggzzz
author_rank: Super Contributor
timestamp: October 14, 2019, 01:36:37 pm
content: Quote from: tooki on October 14, 2019, 11:20:05 amVery sane, and that's a great example of why personal characteristics are important. I always make that point w.r.t. magnification for PCB operations.

author: tooki
author_rank: Super Contributor
timestamp: October 14, 2019, 05:15:52 pm
content: Quote from: Fraser on October 14, 2019, 11:35:41 amFYI, in iOS 13, one can finally shrink them on upload in Safari:https://www.macrumors.com/how-to/choose-image-size-when-uploading-photo-safari-ios/At least for adding quick snapshots to forum posts, this is a great feature. I haven't tried it yet, but presumably will at some point. (The forum admins did finally add attachment support for the .jpeg file extension, allowing direct upload from iOS.)Quote from: Fraser on October 14, 2019, 11:35:41 amI think that's the wide consensus, with the possible aforementioned exception of illustrations with the stylus.