Jump to content

Allow Navigation Links To Support External Urls


Blesta Addons

Recommended Posts

Doesn't your Admin Tools plugin allow modification of the nav? If the URL can't be external, couldn't the plugin perform a redirect?

 

The Portal plugin is intended to become a more feature rich CMS in time, and nav links to external resources would almost certainly be part of that.

 

the admin tools plugins allow modification , and it work as it should be , the probleme come from the navigation link that add the base_uri for every link .

so if we put http://www.blesta.com in link , in the client dashboard it become

http://your_blesta_domain.com/blesta_path/clien/thttp://www.blesta.com
Link to comment
Share on other sites

 

the admin tools plugins allow modification , and it work as it should be , the probleme come from the navigation link that add the base_uri for every link .

so if we put http://www.blesta.com in link , in the client dashboard it become

http://your_blesta_domain.com/blesta_path/clien/thttp://www.blesta.com

 

If the plugin were modified to take that path, have it touch the plugin, and the plugin perform a redirect, that would work wouldn't it?

 

So instead, the link might look like http://your_blesta_domain.com/blesta_path/client/plugin/yourplugin?url=http://www.blesta.com

 

And, the URL is passed in as say a get parameter, and the plugin validates that it's a legitimate nav link and performs a redirect.

Link to comment
Share on other sites

If the plugin were modified to take that path, have it touch the plugin, and the plugin perform a redirect, that would work wouldn't it?

 

So instead, the link might look like http://your_blesta_domain.com/blesta_path/client/plugin/yourplugin?url=http://www.blesta.com

 

And, the URL is passed in as say a get parameter, and the plugin validates that it's a legitimate nav link and performs a redirect.

 

i have though about this idea when i have discovered that problem . but it need a regex when saving url in database to see if the link is internal or external .

 

if the navigation model will not updated soon i will add that function in the next release . but it will take some time until the next release .

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
Reply to this topic...

×   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...