Page MenuHomePhabricator

Don't show "To view this link..." message when users come from a blank search query
Closed, DeclinedPublic

Description

When users attempt to access a page which requires a login, the homepage adds a message which states "To view this link you need to be an eligible library user. Please login to continue." This is helpful when the user clicked a link which is going to take them somewhere inside the library.

The blank search query link https://wikipedialibrary.wmflabs.org/search/?q= redirects users to the homepage, because it's not a valid search URL. In this case, the message doesn't make as much sense. We should not display the message when users have come via this route.

Event Timeline

Hi @Samwalton9 ,
After analyzing the issue deeply just a doubt of ambiguity. We cannot access the search feature if we are not logged in. To search a blank query we must be logged in to the library. So, why will anyone try to access the blank search query via the link above who is not logged in?
Please clarify my doubt since I don't see this as an issue.

Hi @Samwalton9 ,
After analyzing the issue deeply just a doubt of ambiguity. We cannot access the search feature if we are not logged in. To search a blank query we must be logged in to the library. So, why will anyone try to access the blank search query via the link above who is not logged in?
Please clarify my doubt since I don't see this as an issue.

Users can initiate that search URL from anywhere, without being logged in. They might have it bookmarked, for example.

Hi @Samwalton9 ,
After analyzing the issue deeply just a doubt of ambiguity. We cannot access the search feature if we are not logged in. To search a blank query we must be logged in to the library. So, why will anyone try to access the blank search query via the link above who is not logged in?
Please clarify my doubt since I don't see this as an issue.

Users can initiate that search URL from anywhere, without being logged in. They might have it bookmarked, for example.

So isn't it fine to have this message shown?
If not, could please provide some insights on how to progress since I tried it on my own and I found this message was associated to - (TWLight/users/oauth.py) But what to do after this?

You know I think you're right. I can't think what the original problem was here. I'm going to close this ticket unless I remember. Thanks for talking through this!