TheFive / osmbc

Open Street Map Blog Collector
MIT License
28 stars 11 forks source link

Add article without title results in a broken link #943

Closed Strubbl closed 2 years ago

Strubbl commented 2 years ago

Submit an article, where the title does not get auto-filled. Look into the mattermost channel for new articles and see the broken link. Since no title was given to the article it looks weird, e.g. https://mattermost.openstreetmap.de/weeklyosm/pl/j8mscui1hf863cbyqnatyjqw3c, because the link has no name then.

TheFive commented 2 years ago

thie link is broken in the OSMBCArticle channel.

/article/27193%7C

(the problem is the ending %7C) that is may be an internal mattermost separator. |

if you delete it from the mattermost url, it is fine. and the article looks to be normally integrated in OSMBC.

I will "trim" the title to remove spaces, which results in the requirenment to enter a title (if it is not found)

image

(the spaces bypassing the empty Article Title test.

i will although trim the title in the collect to avoid a manual generated blank title