Hopelessly long URLs

Started by Newportnobby, August 16, 2025, 09:18:39 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Newportnobby

Please, please do not post ridiculously long URLs as they play havoc with the mobile version of the forum and even impact the main forum, as can be seen in @chrism 'Bits 'n' pieces' thread.

I use this site to shorten the URL. It's straight forward to use, costs nothing and keeps the forum format happy

https://tinyurl.com

Note:- I do check the shortened URL opens the same link as the hugely long one before hitting 'Post'
I appreciate it's not simple to do when on your mobile

Bealman

Vision over visibility. Bono, U2.

chrism

Quote from: Newportnobby on August 16, 2025, 09:18:39 AMPlease, please do not post ridiculously long URLs as they play havoc with the mobile version of the forum and even impact the main forum, as can be seen in @chrism 'Bits 'n' pieces' thread.

Are you, as a moderator, able to edit the offending post?

I can't because it wasn't me who made it.

Newportnobby

I did try, Chris, but shortening it only gave the subject and not the actual pic that was posted. I'll try another 'work around'

Newportnobby

I saved the pic to my 'gallery' ( :sick: hate that word) and then amended everything.
You wouldn't know I'd been there :angel:  :angel:

Fardap

Hi,
I don't know if you or someone has access to edit the CSS of the forum but I 'think' this might fix links - the fix is already in the body and should work but for whatever reason doesn't seem to...

However there is a specific part (at the bottom of the default css) that I think might force it to apply to mobile devices (smaller than pads) might be worth a test... OR ASK that the word wrap element is included in all media)

I only dabble in webdesign and there maybe someone who is more able to hint at the fix - but agreed that short URLs are the way forward in general this just covers newbies who don't see the request in the future.
Some forum software preferences offer a short url conversion option I think built in but needs activating.

CURRENT CSS

@media (max-width: 480px) {
   .floatleft, .floatright {
   max-width: 100% !important;
   margin: 0 0.5em 1em !important;
   }

ADD THE WORD WRAP LINE


@media (max-width: 480px) {
   .floatleft, .floatright {
   max-width: 100% !important;
        word-wrap: break-word;      
        margin: 0 0.5em 1em !important;
   }


Steve



Fardap

Alternate option is to not paste a URL but us the insert URL from the menu...


BBC Railway Search


Which if pasted is...

https://www.bbc.co.uk/search?q=railway&d=NEWS_PS&edgeauth=eyJhbGciOiAi... I HAVE CUT THE REST OFF TO NOT BREAK THE FORUM PAGE


Simply use this menu option - paste the long link into the URL space - then add the words that will appear in the post (BBC Railway Search) in the example.
NOTE that the long link will show on your page where you create the post - click PREVIEW to see it as it will appear when posted...


Newportnobby

Quote from: Fardap on August 16, 2025, 10:31:28 AMHi,
I don't know if you or someone has access to edit the CSS of the forum but I 'think' this might fix links - the fix is already in the body and should work but for whatever reason doesn't seem to...

However there is a specific part (at the bottom of the default css) that I think might force it to apply to mobile devices (smaller than pads) might be worth a test... OR ASK that the word wrap element is included in all media)

I only dabble in webdesign and there maybe someone who is more able to hint at the fix - but agreed that short URLs are the way forward in general this just covers newbies who don't see the request in the future.
Some forum software preferences offer a short url conversion option I think built in but needs activating.

CURRENT CSS

@media (max-width: 480px) {
    .floatleft, .floatright {
    max-width: 100% !important;
    margin: 0 0.5em 1em !important;
    }

ADD THE WORD WRAP LINE


@media (max-width: 480px) {
    .floatleft, .floatright {
    max-width: 100% !important;
        word-wrap: break-word;       
        margin: 0 0.5em 1em !important;
    }


Steve

Thanks, Steve. You lost me after 'Hi' but I'm sure @Tank might figure out something

Nbodger

Mick @Newportnobby

Have you tried the URL inserted in the post reply screen.

Second icon to the right of the video insert, next to the email one

Have used it but not extensively so don't know its limitations on capabilities.

Newportnobby

@Nbodger

I just tried it and it copies the entire long link. Most stuff after a question mark in a link is not needed anyway.
Nice spot, though. Never noticed that icon :-[

Trainfish

Quote from: Nbodger on August 16, 2025, 10:48:12 AMMick @Newportnobby

Have you tried the URL inserted in the post reply screen.

Second icon to the right of the video insert, next to the email one

Have used it but not extensively so don't know its limitations on capabilities.


I use this a lot and it's a simple remedy
John

To see my layout "Longcroft" which is currently under construction, you'll have to click on the dead fish below

<*))))><


See my latest video (if I've updated the link)   >> here <<   >> or a random video here <<   >> even more random here <<

Fardap

I see this is also the solution to you tube videos that overfill the width especially on mobile.

If you use the insert video from the menu then paste the link in there it constrains the width of the video to the forum settings.

If as I believe happens in the "What are you listening to..." thread direct links are pasted into the page text area the videos are not constrained width ways.

Not sure if there is a way to stop links being pasted into the text area and only allowing the menu options to be used though...

Again is probably just letting people know and why and hoping they pick it up?

Please Support Us!
September Goal: £100.00
Due Date: Sep 30
Total Receipts: £0.00
Below Goal: £100.00
Site Currency: GBP
 0%