Topic on Skin talk:Chameleon

Forced back to main page after login

15
Legaulph (talkcontribs)

When someone comes to the site to view content and decides to edit the page and need to log in they are then redirected to the main page. It would be best if login keeps the user on the page they are currently at. Is there a way to change this behavior?

Thank you!

Further review reveals This is not an issue with Chameleon Skin
This has to do with
side menu link "Special:UserLogin" for login

Kghbln (talkcontribs)

Sounds like you have $wgRedirectOnLogin in your "LocalSettings.php" or does this really only happen for this skin?

Legaulph (talkcontribs)

Started to happen when I changed to this skin. I don't have $wgRedirectOnLogin set in my local settings.

F.trott (talkcontribs)

I tried it here and it seems to work. When you go to the login page, does the URL contain the returnto parameter?

Legaulph (talkcontribs)

Yes it has &returnto=Main+Page
Is there and easy way to get rid of it?

F.trott (talkcontribs)

Just to make sure: It contains that param regardless of the page you are on (i.e. not only if you start from Main Page), right? And this does not happen using any other skin? Because these links are taken without any modification from MW core and I have no idea how using Chameleon could change that link.

Legaulph (talkcontribs)

It is weird because it does not always contain &returnto=Main+Page in the url.

What version of MW or SMW do you have?

Here is what I have MediaWiki 1.23.6 PHP 5.3.3 (apache2handler) MySQL 5.6.19-log Semantic MediaWiki 2.1 alpha GPL-2.0+

F.trott (talkcontribs)

I have

  • MediaWiki 1.25alpha (ea0e9cb)
  • PHP 5.5.9-1ubuntu4.5
  • MySQL 5.5.40-0ubuntu0.14.04.1
  • Semantic MediaWiki 2.1 alpha (06bbaf6)
  • Chameleon 1.1.3-alpha (5621e05)
  • Bootstrap 1.1.2 (c53221d)
Legaulph (talkcontribs)

I'm finding that the different layouts have their own little bugs.
I'm using the navehead.xml and as a test I switched to standard.
When I switched to standard I find it works fine without redirecting me.
I was using the fixedhead and that was causing problems with TOC links.
I prefer navhead or fixedhead.

F.trott (talkcontribs)

Fixedhead and stickyhead use special styling so section heads are not hidden behind the navbar when you follow links from the TOC. However, navhead should be unaffected from that.

Legaulph (talkcontribs)

Yes Navhead is unaffected from that.
Can we fix the problem with the redirect back to main page?

F.trott (talkcontribs)

I'd love to, but I need to be able to reproduce that bug.

I'll have a look at the code to see if there are any differences between navhead and standard that could cause that issue.

It'd really help if you could find any reliable pattern to reproduce this.

I guess if this was a public wiki you'd have told me already, right?

Legaulph (talkcontribs)

No it's not a public wiki.
Does navhead work correctly for you?

F.trott (talkcontribs)

Navhead seems to work. Tried it on two different wikis.

Legaulph (talkcontribs)

After further testing I found that the login in the user tools works fine. I also found out that we added the login link to the side menu Special:UserLogin for login, and with javascript we hide it after login.

This is not an issue with Chameleon Skin

Reply to "Forced back to main page after login"