GreepTheSheep / openplanet-MXRandom

An Openplanet plugin that takes a random map from MX / TMX and play it
https://openplanet.dev/plugin/mxrandom
GNU General Public License v3.0
20 stars 29 forks source link

MX base URL should allow trailing slash #104

Closed Wain4 closed 1 year ago

Wain4 commented 1 year ago

I've seen people accidentally add a slash at the end of the MX base URL. I'm not sure how it happens, maybe they tried to copy the URL from a browser's URL bar, which causes a slash to appear. It would be nice if the plugin detected and removed the slash.

Currently, if this happens, the user sees a lot of MX errors. If they reload the plugin, it then becomes impossible to open the RMC window (because "TrackmaniaExchange is not responding"), and the only way to get to the search settings is by opening the Openplanet settings menu. Maybe that can be improved too, but it doesn't seem necessary to me.

Edit: There are now buttons for tmx and xk, so this only affects anyone using a custom third option.