By Nicolas DEZORTHES on Wednesday, 07 June 2017
Posted in General Issues
Likes 0
Views 689
Votes 0
Hi,

I'm posting another issue i had, because after verification it doesn't come from my modifications (still appears with my mod plugin switched off and basic protostar template).

It only appears when the list is loaded by ajax, when i refresh the page, the pagination is allright. You can test on our site for which the support is registered (not the site i am working on right now, and version is 4.0.13, but issue is the same).

The problem: the context is for pages that display a post list (EasyDiscuss » Frontpage Layout » Frontpage Layout) through ajax AND that have an alias (that are not the home page). So, the page has an alias, i will take an example from our site, when i first go to "Tous" in the menu ("tous" means "all"), the alias is "website/tous". There are lots of posts, and the pagination is allright (website/tous?start=20).
But when the list is loaded by ajax, the page alias disappears, and i am then redirected to another menu item (home page). Following the exemple, in the list, when i filter to "Non réglés" (Unsolved) and trigger an ajax load, the url in the browser updates correctly (website/tous/index/unresolved). However, in the pagination, the current page is forgotten, and links become "website/index/unresolved/latest?start=20" instead of "website/tous/index/unresolved/latest?start=20".

So when i click on a pagination link, i am redirected to the "new posts" page (Nouveaux) which is currently set as the homepage and has the "Unread" filter whic overrides url's filter.

Do you have a clue for where i can fix this? Have been searching a little, but there are lots of files in there ^^ I have managed to pass my added filters through the pagination, but i don't find where current page would be passed to the request..

Thanks by advance!
Hi there,

It will follow what you have set here http://take.ms/F2FIP. Please give it a check and see how it goes

If problems still persist, it would be best if you can provide us with your backend and FTP access for further check on this issues

EDITED
·
Thursday, 08 June 2017 11:31
·
0 Likes
·
0 Votes
·
0 Comments
·
I have edited the post to include site access, unfortunately the settings that you show are already the one that we have currently, and the issue is still showing.

I need to see with my boss for the FTP access, but you have full admin access with this user, and this site is just a default Joomla 3.6.4 install, with a not modified EasyDiscuss 4.0.13 and basic untouched Protostar template (the other site i am working on, with the modded version and custom template, is a latest Joomla 3.7.2 with latest EasyDiscuss 4.0.15, and shows exactly the same issue).

Switched the site to english for your comfort.
·
Thursday, 08 June 2017 16:05
·
0 Likes
·
0 Votes
·
0 Comments
·
HI there,

It seems that i didnt have full permission to access your site as you can see here http://take.ms/EEQEH. Please advice.
·
Thursday, 08 June 2017 16:29
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes, sorry, forgot to check one permission, should be allright now.
·
Thursday, 08 June 2017 16:54
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

After checking all your current menu item and checking this with our developer, it seems that there are issues on our end. I have created a ticket internally and this fixes will be included on our next release version.

Thanks for your understanding
·
Thursday, 08 June 2017 17:35
·
0 Likes
·
0 Votes
·
0 Comments
·
No problem, i will mark this as resolved, can you just redirect me towards the file where i can add a quick custom fix? In our modded version, i have already overriden router.php and pagination.php (I added custom filtering options for 'index' posts listing, as stated in my previous post here). Would it be in one of these 2? or both?

I actually should have tagged as urgent, we are supposed to present a basic working version in some days.

Thanks again!
·
Thursday, 08 June 2017 18:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Ok, i have fixed it (only for my modded views though). I had to edit more than i would have liked to, IMHO there is a tool/class/function missing to centralize all the places where those parameters are read/sent.

In case other people want to know, I modified index/view.html.php (not mandatory, it can be in your view file instead), the view file (frontpage/filters.php in my case) where i redefined the JS ajax call, index/view.ajax.php, router.php and pagination.php.

Fortunately, all these were already overriden files in my case.

Thanks again!
·
Thursday, 08 June 2017 23:02
·
0 Likes
·
0 Votes
·
0 Comments
·
That was great, keep us update if you need any further assistance in the future.
·
Thursday, 08 June 2017 23:26
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post