?
avatar simongareste
simongareste
18 Apr 2018

Steps to reproduce the issue

Let's say that 155 is the Menu Id where I want to be redirected to after login
JRoute::_("index.php?ItemId=155")

Expected result

Be redirected to the url equivalent to the Menu 155

Actual result

I'm always redirected to
index.php?option=com_users&view=profile

System information (as much as possible)

On a Joomla 3.8.5

Additional comments

The issue I have with this is that JRoute::_("index.php?ItemId=155") will return /index.php?option=com_whatever&anything=really, with a leading '/'. Because of this, it will not be considered as an internal URL, and the default (option=com_users&view=profile) will be used instead.

So I should not use JRoute::_($url) anymore, at least not for login, or is this somewhat of a bug?

avatar simongareste simongareste - open - 18 Apr 2018
avatar joomla-cms-bot joomla-cms-bot - change - 18 Apr 2018
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 18 Apr 2018
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 18 Apr 2018

can you please update to latest Release 3.8.6 (today 3.8.7 is announced).

avatar franz-wohlkoenig franz-wohlkoenig - change - 18 Apr 2018
Status New Discussion
avatar franz-wohlkoenig franz-wohlkoenig - change - 18 Apr 2018
Category Router / SEF
avatar SharkyKZ
SharkyKZ - comment - 18 Apr 2018

You should not wrap the link with JRoute in Login Redirect field, if that's what you're asking. In your case you should enter only index.php?Itemid=155 (also note capitalization on Itemid).

avatar simongareste
simongareste - comment - 18 Apr 2018

That's what I'm asking, thanks. It seems that the SocialConnect module (https://www.joomlaworks.net/extensions/commercial/socialconnect) is doing this, though I couldn't figure out if it's now obsolete, or if I'm out of date of anything.

avatar Quy
Quy - comment - 23 Apr 2018

@simongareste Please close if this has been answered. Thanks.

avatar franz-wohlkoenig franz-wohlkoenig - change - 23 Apr 2018
Status Discussion Information Required
avatar simongareste simongareste - change - 23 Apr 2018
Status Information Required Closed
Closed_Date 0000-00-00 00:00:00 2018-04-23 08:01:55
Closed_By simongareste
avatar simongareste simongareste - close - 23 Apr 2018

Add a Comment

Login with GitHub to post a comment