Ask Your Question
3

Bug: Non-ascii URLs get mangled after updating interesting/ignored tags

asked 2012-06-17 03:18:15 -0500

Basel Shishani gravatar image Basel Shishani
197 7 2 14

updated 2012-06-17 04:08:44 -0500

There is buggy behavior when updating the tags in the interesting/ignored tags on the main page:

If the window URL contains URL encoded non ascii chars (as in internationalized url's where the 'question' segment has been translated) then the refreshed URL after the Ajax call would get mangled (the non-ascii segment goes through incorrect encode/decode it seems). Also, the newly added/removed tags would not show immediately on the page, but would show on subsequent page updates.

This seems to be an issue not with Askbot but with the History.js library - when calling History.pushState.

I modified the code in the 'livesearch.js' file to call history.pushState directly (notice the lower case 'h') bypassing the History.js library, and the issue went away as far as I can tell. (Of course by doing so we lose the supposed benifit of History.js)

I provide more details in my recent StackOverflow posting, so check it there please.

delete close flag offensive retag edit

Be the first one to answer this question!

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Reliable Askbot Hosting

Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.

create your Q&A site
30 days free trial

Question tools

Follow
1 follower

subscribe to rss feed

Stats

Asked: 2012-06-17 03:18:15 -0500

Seen: 47 times

Last updated: Jun 17 '12