Jump to content

URL formatting issue when searching after login expires


Jason8

Recommended Posts

I did a quick look through the bug reports, but I didn't see other mentions of this.  CN's login timeout is short, so I often have a tab open, scroll to the bottom, enter a search term, and click the Search Nations buttion.  The website correctly redirects to the login page.  I successfully log in and the next page should be the search results.  Unfortunately, the search string is malformed/encoded incorrectly, so I have to search again.

 

This is the URL with the incorrectly formatted search string:

https://www.cybernations.net/search.asp?searchstring=All&search=firingline&anyallexact=all&Strength1=&Strength2=

 

This is the properly formatted/encoded URL:

https://www.cybernations.net/search.asp?searchstring=All&search=firingline&anyallexact=all&Strength1=&Strength2=

 

As you can see, the "&" is not getting converted back to "&" after login, causing the search to fail with a "NO RECORD FOUND" error.  This also occurs when someone shares the URL of other searches, (such as a nation's wars) and you're not logged in already.  I don't have a full list of pages that are affected, but it looks like any page with ampersands in the URL is affected when being redirected from the login screen.  It looks like the search string is getting converted to percent encoding at the login screen and then when it's being converted back, the %26 for an ampersand is getting converted to & and not &.  


Not high priority or anything, but would be a great fix for day-to-day usability of the site. 

Link to comment
Share on other sites

  • 1 year later...
  • 2 months later...
  • 2 weeks later...
  • 1 month later...
  • 3 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...