Jump to content
  • 0

Friendly URLs


Kal

Question

Is there a way to get Blesta to generate friendlier URLs? I'm thinking of the Knowledge Base in particular.

Instead of this:

https://blesta.example.com/plugin/support_manager/knowledgebase/view/6/testing-your-website-before-it-goes-live/5/

I'd like to have something like this:

https://blesta.example.com/knowledgebase/testing-your-website-before-it-goes-live

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

  • 0
12 hours ago, Kal said:

Is there a way to get Blesta to generate friendlier URLs? I'm thinking of the Knowledge Base in particular.

Instead of this:

https://blesta.example.com/plugin/support_manager/knowledgebase/view/6/testing-your-website-before-it-goes-live/5/

I'd like to have something like this:

https://blesta.example.com/knowledgebase/testing-your-website-before-it-goes-live

I believe this is possible by creating a route, similar to the order manager which uses /order/ instead of /plugin/order/ See https://docs.blesta.com/display/user/Configuration+Files#ConfigurationFiles-routes.php for details. If you need help, creating the route, one of our devs may be able to help. It wouldn't hurt if we had some common examples in our docs anyway.

Link to comment
Share on other sites

  • 0
On 8/26/2020 at 9:27 AM, Paul said:

I believe this is possible by creating a route, similar to the order manager which uses /order/ instead of /plugin/order/ See https://docs.blesta.com/display/user/Configuration+Files#ConfigurationFiles-routes.php for details. If you need help, creating the route, one of our devs may be able to help. It wouldn't hurt if we had some common examples in our docs anyway.

Thanks for the info about routes.php. I can see from the code, for example, how `/admin/settings/company/general/localization/` really points to `/admin_company_general/localization/`. By the same logic, `/admin/plugin/support_manager/admin_knowledgebase/` should point to `/support_manager/admin_knowledgebase/`, but trying to load that second URL in a browser doesn't work—so I guess there's something I'm not getting about how it works.

Anyway, I suspect I can't achieve what I want with routes, because the table row IDs for knowledge base articles are essential parts of the URLs. Ideally, I'd like the option of having human-readable and platform-agnostic URLs like this:

https://account.example.com/help/docs/article-title

I don't like that the URLs include table row IDs, which don't reflect anything meaningful, only what order I created the articles. That kind of thing should be hidden from the user IMHO.

Link to comment
Share on other sites

  • 0
On 8/25/2020 at 7:27 PM, Paul said:

I believe this is possible by creating a route, similar to the order manager which uses /order/ instead of /plugin/order/ See https://docs.blesta.com/display/user/Configuration+Files#ConfigurationFiles-routes.php for details. If you need help, creating the route, one of our devs may be able to help. It wouldn't hurt if we had some common examples in our docs anyway.


 

@Paul

Are there any plans to implement the " Friendly URL's" into a future release of Blesta ?

1)- This way the url is not revealing the Blesta plugins or modules that are being used.

2) - Plus, it just looks more clean and professional.

 

..

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...