Notifications
Clear all

[Solved] Business page url

2 Posts
1 Users
1 Reactions
303 Views
(@kriskoyk)
Posts: 37
Trusted Member
Topic starter
 

How can I modify this code of the (business_profile/index.php) plugin

osc_add_route('bpr-list', 'companies', 'companies', osc_plugin_folder(__FILE__).'form/home.php', false, 'bpr', 'home');

osc_add_route('bpr-list-filter', 'browse-companies/(.+)', 'browse-companies/{iPage}', osc_plugin_folder(__FILE__).'form/home.php', false, 'bpr', 'home');
osc_add_route('bpr-seller', 'company/(.+)', 'company/{identifier}', osc_plugin_folder(__FILE__).'form/seller.php', false, 'bpr', 'seller');
osc_add_route('bpr-seller-filter', 'company-filter/(.+)/(.+)', 'company-filter/{identifier}/{params}', osc_plugin_folder(__FILE__).'form/seller.php', false, 'bpr', 'seller');

osc_add_route('bpr-profile', 'user/business-profile', 'user/business-profile', osc_plugin_folder(__FILE__).'user/profile.php', true, 'bpr', 'profile'); 

so that the address does not look like this: domain/index.php?page=custom&route=bpr-list

but like this: domain/companies 

and like this: domain/demo1

 
Posted : March 27, 2021 14:19
(@kriskoyk)
Posts: 37
Trusted Member
Topic starter
 

Problem solved!
No interference is needed in the Index.php file.
I just activated permanent links and everything works perfectly!

This post was modified 4 years ago by kriskoyk
 
Posted : April 1, 2021 21:52
Editor reacted