Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

Is the change in window.location (square brackets encoded) is a voluntary or involuntary change?

  • 2 답장
  • 1 이 문제를 만남
  • 1 보기
  • 최종 답변자: Nielyr

more options

In Firefox, version prior to 35.0 window.location were returning decoded square brackets (ex.: http://example.org/something[values]) like all other browsers we are supporting for our website. In Firefox 35.0 and 35.0.1, square brackets are encoded (http://example.org/something%5Bvalues%5D). Is this change done voluntary or is it a bug as a side effect of something?

We are using Sammy.js to create route to access different pages of the website, and some routes are broken since version 35 because the square brackets are no more detected by sammy. We can modify the library to decode the URI before doing the comparison, but I will prefer avoid modifying external library.

In Firefox, version prior to 35.0 window.location were returning decoded square brackets (ex.: http://example.org/something[values]) like all other browsers we are supporting for our website. In Firefox 35.0 and 35.0.1, square brackets are encoded (http://example.org/something%5Bvalues%5D). Is this change done voluntary or is it a bug as a side effect of something? We are using Sammy.js to create route to access different pages of the website, and some routes are broken since version 35 because the square brackets are no more detected by sammy. We can modify the library to decode the URI before doing the comparison, but I will prefer avoid modifying external library.

글쓴이 Nielyr 수정일시

선택된 해결법

By looking in bug tracking system for Firefox, I found it has been fixed in Firefox 36 and up.

문맥에 따라 이 답변을 읽어주세요 👍 0

모든 댓글 (2)

more options

I didn't see anything in the release notes of version 35 that could be related to this.

글쓴이 Nielyr 수정일시

more options

선택된 해결법

By looking in bug tracking system for Firefox, I found it has been fixed in Firefox 36 and up.