Incorrect Wikipedia Link URLs
In some of the OSM data POIs, there are URLs to Wikipedia that are having spaces or special characters that should be encoded for a propper URL.
In such cases, Locus blocks the saving of such POIs into User POIs, because it recognizes the not propper URL.
This not optimized URL could be corrected in OSM, but this is a bigger efford for the Locus users (create a OSM acvount, learn to maintain OSM data etc.). It is much easier to correct the URL at creating the LoMaps.
Just do a check on the URL and replace not allowed charaters with theis coresponding encoded cjaracters. Example: space should be replaced with %20.
Until this is done automatically, the best workaround for user is to copy the not optimized URL in a browser and then vopy&paste the optimizes URL (yes, browsers can correct this) to the POIs URL field.
An other idea could be to adapt the URL check at saving POIs in Locus to accept spaces and special characters.
An example of such a POI with a space is: https://www.openstreetmap.org/way/99471691#map=16/56.87524/-5.43149
Hi Druki, thanks for reporting this. If I remember, URL encoding is not done on published urls (links related to POIs). Howewer published wiki pages do have whitespaces replaced by underscore - this is what wikipedia frontend does, so Locus follows this strategy. How did you manage to see whitespace? Did you use offline DB? Here I am not sure, but what is published online for Aqueduct is https://en.wikipedia.org/wiki/Glenfinnan_Viaduct. Also, there is no specific URL validation for saving into user db. So could you be more specific, perhaps show a video or serie of steps to replicate? That viaduct can be saved no problem.
Hi Druki, thanks for reporting this. If I remember, URL encoding is not done on published urls (links related to POIs). Howewer published wiki pages do have whitespaces replaced by underscore - this is what wikipedia frontend does, so Locus follows this strategy. How did you manage to see whitespace? Did you use offline DB? Here I am not sure, but what is published online for Aqueduct is https://en.wikipedia.org/wiki/Glenfinnan_Viaduct. Also, there is no specific URL validation for saving into user db. So could you be more specific, perhaps show a video or serie of steps to replicate? That viaduct can be saved no problem.
Ah, i now found the source in my used OAM data, which I prefer for offlne POI. I love the old offline POI handling (instead of the new handling), but at saving such OAM POI causes the error.
Link to the used data: locus-actions://https/http://www.openandromaps.org/wp-content/library/xmlV5/Great-Britain.xml
Ah, i now found the source in my used OAM data, which I prefer for offlne POI. I love the old offline POI handling (instead of the new handling), but at saving such OAM POI causes the error.
Link to the used data: locus-actions://https/http://www.openandromaps.org/wp-content/library/xmlV5/Great-Britain.xml
Replies have been locked on this page!