By Peter Ashford on Wednesday, 07 June 2017
Posted in General Issues
Likes 0
Views 846
Votes 0
hi - I have created a new menu item for users to create quick blog posts from the front end. My permissions mean users need to be logged in to post, so when they click on the menu item, it prompts them to login if not logged in. The issue I have is that instead of taking the user to the quick post menu item after logging in, it takes them to the main blog page. If they are already logged in before clicking the menu item it goes to the quick post menu item as expected. How can I adjust routing to take people to the correct page after logging in?

hope this makes sense?

cheers Pete
Try download my attached file and replace into this following file location and see how it goes?

JoomlaFolder/administrator/components/com_easyblog/includes/easyblog.php
·
Thursday, 08 June 2017 11:54
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex,

Thank you for the reply. The new files works for a standard Joomla login - it takes me to the page I want to go to. I do have one issue though - when I use my Social Login option, it still takes me to the incorrect page. Not sure why that would be different? The social login component (https://www.easy-profile.com) is set to default, which means it follows normally routing instead of forcing it to another page.

What changes did you make to the file? Is it a bug or issue with my site?

I have opened up the FTP and admin access for you.

thanks Pete
·
Thursday, 08 June 2017 20:36
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes, that is bug, but my patch file should be fix that issue.

And now you encounter another issue when you applied my fix into your site right?

If yes, may i know how replicate this? perhaps you can share with us step by step so I can directly check on your site?

And can you update your backend and your FTP access again? Because I was unable to access, this is what i hitting :

FTP

Command: PASS ************
Response: 530 Login authentication failed
Error: Critical error: Could not connect to server


Joomla backend

Warning
Username and password do not match or you do not have an account yet.
·
Thursday, 08 June 2017 22:49
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex - I have reset the password and updated my site login details. Please try again. Worked for me using same details.

As for replicating the issue. You will need a Facebook or Google + account for this. If you go to https://www.cyclingtouring.org/journals/create-journal-entry and that will then show a login box. Click for either facebook or google. Instead of taking you to the QUick Post screen, it takes you to the main blog page instead - same as before with a standard joomla login before you gave the fix. Does that make sense??

thanks Pete
·
Thursday, 08 June 2017 23:15
·
0 Likes
·
0 Votes
·
0 Comments
·
It seems like i hitting this when i view that page :

403: Access Forbidden
Too many login attempts (Autobanned)


Can you add my current IP address 175.144.21.166 into your server whitelist?

As for replicating the issue. You will need a Facebook or Google + account for this. If you go to https://www.cyclingtouring.org/journals/create-journal-entry and that will then show a login box. Click for either facebook or google. Instead of taking you to the QUick Post screen, it takes you to the main blog page instead - same as before with a standard joomla login before you gave the fix. Does that make sense??

If you using another login provider, that was not possible to fix on our end.
But I will check your site again later when you add my current IP address into your server whitelist.
·
Thursday, 08 June 2017 23:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Try again, now white listed.
·
Friday, 09 June 2017 00:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks , I've checked in your site, it seems like you have to consult with this social login provider regarding this and see whether they can do something about it to get the current return URI, you can check my attached screenshot below what i mentioned.

When the user click on this link (https://www.cyclingtouring.org/journals/create-journal-entry) then it redirect to Easyblog login page, the page URL already pass in those return URL :

https://www.cyclingtouring.org/blog/login?return=aHR0cHM6Ly93d3cuY3ljbGluZ3RvdXJpbmcub3JnL2pvdXJuYWxzL2NyZWF0ZS1qb3VybmFsLWVudHJ5


I think what their need to do is check the page URL whether got `return` parameter then pass in their social login parameter redirect parameter e.g.


https://www.facebook.com/dialog/oauth?response_type=code&client_id=1573130486257541&redirect_uri=https%3A%2F%2Fwww.cyclingtouring.org%2Findex.php%3Foption%3Dcom_jsn%26tmplsocial%3D1%26view%3Dfacebook%26task%3Daccesstoken&scope=email&state=82754ff648920f4d22cefd0d386cb410&display=popup


By the way, if you login from Easyblog page and click on the login button, it will redirect to correct page.
·
Friday, 09 June 2017 00:53
·
0 Likes
·
0 Votes
·
0 Comments
·
Ok, I'll raise it with them.

The only thing I would say is that I do have other components that use return URLS and they work fine with this component. Guess they use a similar method as Easyblog.

I'll let you know what they say.

thanks Pete
·
Friday, 09 June 2017 01:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Arlex - Just to let you know I have got this resolved with easy-profile. Thank you for all your help. thanks Peter
·
Friday, 09 June 2017 03:25
·
0 Likes
·
0 Votes
·
0 Comments
·
The patch you gave earlier, will that be incorporated into future release?
·
Friday, 09 June 2017 03:29
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for letting us know EasyProfile developer already provided some fix regarding this.

Yes, that fix what i provided will included in next release as well.

As a gentle reminder, kindly start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiry. I will lock and mark this thread as resolved.
·
Friday, 09 June 2017 10:06
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post