COMPANY URL
« on: February 05, 2024, 08:11:10 PM »
Please help me solve the problem. on a company page, if you add a slash “/” to the end of the URL, it will redirect to the main page of the site. But I need the url to work both with and without the slash. why is this so important to me, users who bought a “business account” on my website. They can’t provide a link to it on their Instagram. because Instagram automatically adds a slash “/” at the end. when following a link from Instagram
  By url "Business profile" the link redirects to the main page of the site and not the Business profile page

https://plugins2.abprofitrade.eu/company/john-doe

https://plugins2.abprofitrade.eu/company/john-doe/

*

MB Themes

Re: COMPANY URL
« Reply #1 on: February 06, 2024, 10:52:41 AM »
That's problem of instagram, not plugin.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

Re: COMPANY URL
« Reply #2 on: February 06, 2024, 03:32:50 PM »
That's problem of instagram, not plugin.

Tell me how to make the slash "/" remain at the end of the link ?

*

MB Themes

Re: COMPANY URL
« Reply #3 on: February 07, 2024, 08:44:04 AM »
you may try to update or create new route in index.php
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

Re: COMPANY URL
« Reply #4 on: February 07, 2024, 12:33:19 PM »
you may try to update or create new route in index.php

Please tell me which line is responsible for this

Re: COMPANY URL
« Reply #5 on: February 07, 2024, 04:06:52 PM »
changed this line
Code: [Select]
osc_add_route('bpr-seller', 'company/(.+)', 'company/{identifier}', osc_plugin_folder(__FILE__).'form/seller.php', false, 'custom', 'bpr-seller', __('Company profile', 'business_profile'));

on this
Code: [Select]
osc_add_route('bpr-seller', 'company/(.+?)/?$', 'company/{identifier}/', osc_plugin_folder(__FILE__).'form/seller.php', false, 'custom', 'bpr-seller', __('Company profile', 'business_profile'));

the link now works with and without slashes. but still, when you go from Instagram via a link to a business profile, a redirect is made to the main page of the site. But with regular profiles, if you switch to it from Instagram, there is no such problem. please tell me how to fix it?

*

MB Themes

Re: COMPANY URL
« Reply #6 on: February 07, 2024, 04:48:45 PM »
Yet you are talking just about instagram issue, not about osclass/plugin issue.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

Re: COMPANY URL
« Reply #7 on: February 07, 2024, 05:56:33 PM »
I'm sorry that I'm not clearly expressing my thoughts, I'm talking through a translator

Re: COMPANY URL
« Reply #8 on: February 07, 2024, 06:04:56 PM »
Why then does the link to a regular public profile work without problems, but the link to a business profile does not open via Instagram? And what should people do who buy a business profile and want to post their link on Instagram and they get an error when they click through?

*

MB Themes

Re: COMPANY URL
« Reply #9 on: February 08, 2024, 03:07:19 PM »
Ask Instagram support, as you still talking about instagram issues, not about plugin issues.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots