Great Western Coffee Shop

Sideshoots - associated subjects => News, Help and Assistance => Topic started by: grahame on May 12, 2024, 09:45:10



Title: URLs corrupting when they have an abbreviation embedded in them
Post by: grahame on May 12, 2024, 09:45:10
(Edit: removed the link to realtimetrains timetable for yesterday at Gloucester as, when posted, something strange was happening to it.)

Yes, aware of that one.  It relates to expanded abbreviations and URLs that include acronyms within them.  Significant coding job to correct the issue and with all sorts of likely side effects - adding complexity would add special cases.

Best solution is to mention the abbreviation in the text above the URL.   Outside a URL, it is possible for the poster to suppress expansion by adding another tag pair within it - for example an italic start and end tag.



Title: Re: URLs corrupting when they have an abbreviation embedded in them
Post by: GBM on May 12, 2024, 11:06:25
Um.
For those of us who don't speak programming, could someone please translate the above.


Title: Re: URLs corrupting when they have an abbreviation embedded in them
Post by: grahame on May 12, 2024, 11:16:13
Um.
For those of us who don't speak programming, could someone please translate the above.



If you quote a web address that has an abbreviation hidden in it, it can go wrong.   For example

https://www.realtimetrains.co.uk/search/detailed/gb-nr:MKM/to/gb-nr:SWI/2024-05-12/0000-2359?stp=WVS&show=all&order=wtt

won't work because of the "SWI" and "MKM" in there, both of which will usually expand.



If you mention MKM and SWI earlier in the message, though, it will work:

https://www.realtimetrains.co.uk/search/detailed/gb-nr:MKM/to/gb-nr:SWI/2024-05-12/0000-2359?stp=WVS&show=all&order=wtt

and if you wish to use the abbreviations within text and not have them expand - as I did at the start of this message - you can add something like [ I ][/ I ] in the middle of the abbreviation - won't be seen, but will mean that the letters of the abbreviation are no longer up against each other in the raw message.


Title: Re: URLs corrupting when they have an abbreviation embedded in them
Post by: Mark A on May 12, 2024, 11:52:02
Thanks for that!

Mark



This page is printed from the "Coffee Shop" forum at http://gwr.passenger.chat which is provided by a customer of Great Western Railway. Views expressed are those of the individual posters concerned. Visit www.gwr.com for the official Great Western Railway website. Please contact the administrators of this site if you feel that content provided contravenes our posting rules ( see http://railcustomer.info/1761 ). The forum is hosted by Well House Consultants - http://www.wellho.net