• Home
  • Get help
  • Ask a question
Last post 10 hours 33 min ago
Posts last week 141
Average response time last week 4 hours 42 min
All time posts 67805
All time tickets 10478
All time avg. posts per day 21

Helpdesk is open from Monday through Friday CET

Please create an (free) account to post any question in the support area.
Please check the development versions area. Look at the changelog, maybe your specific problem has been resolved already!
All tickets are private and they cannot be viewed by anyone. We have made public only a few tickets that we found helpful, after removing private information from them.

#5230 – force mijoshop in sef_ext file to add .html not working

Posted in ‘sh404SEF’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Wednesday, 19 September 2018 14:32 UTC
iage
 Hi,

We have in our Joomla the extension Mijoshop 3.

The URLs are created with a custom router file in the sef_ext directory (.zip attached).

If we force in the file that product pages should add .html at the end, it works only once. After a reload the URL changes back with just a slash at the end and that's also the URL which is safed in the backend as SEF-URL.

If we edit the URL in the backend manually to .html it works an it stays like this.

Is there a way do automatically add .html to product pages? In other parts of the website the .html works just fine.
Wednesday, 19 September 2018 15:05 UTC
wb_weeblr
Hi

We do no provide support for Mijoshop which basically only works with MijoSEF (as you know, that's why you developed a plugin for it) and we cannot provide support on custom coding.

After a reload the URL changes back with just a slash at the end and that's also the URL which is safed in the backend as SEF-URL.
Are you sure that both URLs are not recorded? If the URL is displayed the first time, then it should be stored in the database.

Best regards
 
Thursday, 20 September 2018 07:12 UTC
iage
Hi

Thank you for your reply!

Yes, just the second URL (without .html) is recorded. It's like another router or sef_ext file is more "aggressive" than the sef_ext file for mijoshop.

I'm not asking to help extend or correct my custom plugin. I just wonder if there's a sef_ext function to add the suffix (I see in other standard sef_ext files e.g. in the com_content there's a line where it adds a slash, but I don't want to remove this, because for blogs it's helpful to add a slash) and maybe this line of code causes that it's adding the slash for mijoshop? (But I guess that's not the case, because one sef_ext has no influence of another sef_ext, is this correct?)

For any info or advice I'd be very glad, so I could fix it myself.

Thanks in advance!
Thursday, 20 September 2018 09:51 UTC
wb_weeblr
Hi

I just wonder if there's a sef_ext function to add the suffix (I see in other standard sef_ext files e.g. in the com_content there's a line where it adds a slash, but I don't want to remove this, because for blogs it's helpful to add a slash)
Adding the slash at the end of the $title array in the plugin will prevent the .html to be added.
In com_content for instance, we add the slash at the end of categories link, so that they do not have .html. We do not add the slash at the end of article pages, so that they get the .html part.

and maybe this line of code causes that it's adding the slash for mijoshop? (But I guess that's not the case, because one sef_ext has no influence of another sef_ext, is this correct?)
Not sure I understand, there is no relationship between com_content and com_mijoshop.

Best regards
 
Thursday, 20 September 2018 14:16 UTC
iage
Hi

Thank you for your reply and information.

Not sure I understand, there is no relationship between com_content and com_mijoshop.


Thanks, that was the answer I was expecting.

We will check further if we can fix this somehow, ticket can be closed for now. If we have more question I will make a new ticket.

Thank you & best regards
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.