MemoryX2 Posted April 29, 2014 Report Share Posted April 29, 2014 I know this has been mentioned in a couple cases through the forum, so I wanted to open a formal request on this. It would be great if Blesta used shorter/ prettier URLs. Some like /ticket/23 instead of /plugin/support_manager/23 (may be longer than even that). It would be great if there was an easy way in the system settings somewhere to shorten these URLs and set custom values. Ken 1 Quote Link to comment Share on other sites More sharing options...
Michael Posted April 29, 2014 Report Share Posted April 29, 2014 It's a nice idea and you can do it via routes, however for it to be standard it would take a lot of time to re-write some of the core and I believe personally it will conflict overall. Hopefully there's a way but I dowt it. Quote Link to comment Share on other sites More sharing options...
Ken Posted April 29, 2014 Report Share Posted April 29, 2014 Is this solution still working for your order forms MemX2? http://www.blesta.com/forums/index.php?/topic/1579-shorter-urls/?hl=order+route#entry13500 +1 on shorter URLs overall. But not at the expense of proper methodology (including but not limited to best practices in terms of security). Quote Link to comment Share on other sites More sharing options...
Cody Posted April 30, 2014 Report Share Posted April 30, 2014 A URL is supposed to be a logical resource, which is how they're built in Blesta. It's sometimes nice to have sort URLs, but that usually requires removing information about a particular resource, making it less logical. Logic aside, as-is, I think they are quite pretty. Much prettier than say, "cart.php?template=foo&package=12". Ken and Michael 2 Quote Link to comment Share on other sites More sharing options...
MemoryX2 Posted April 30, 2014 Author Report Share Posted April 30, 2014 A URL is supposed to be a logical resource, which is how they're built in Blesta. It's sometimes nice to have sort URLs, but that usually requires removing information about a particular resource, making it less logical. Logic aside, as-is, I think they are quite pretty. Much prettier than say, "cart.php?template=foo&package=12". I agree with you. After posting this, I'm now beginning to rethink the entire idea. Quote Link to comment Share on other sites More sharing options...
Blesta Addons Posted May 1, 2014 Report Share Posted May 1, 2014 Question for stuff , is the routes system can be overrided by other class ? if yes , the door is open to use plugins to ovveride the routes/urls without changing the core files . Quote Link to comment Share on other sites More sharing options...
Cody Posted May 1, 2014 Report Share Posted May 1, 2014 Question for stuff , is the routes system can be overrided by other class ? if yes , the door is open to use plugins to ovveride the routes/urls without changing the core files . No, because the route must be processed before any other code is executed. You could, of course, use a plugin to modify /config/routes.php when installed, though probably best to just give user instructions to do so. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.