[Interest] bug with # in URL when using setUrl?

Thiago Macieira thiago.macieira at intel.com
Tue Mar 15 16:54:21 CET 2016


On terça-feira, 15 de março de 2016 11:45:12 PDT Larry Martell wrote:
> >>     QString urlStr = "http://foo.bar.com:8000/#/workitem/12345";
> >>     QUrl reportUrl(urlStr);
> > 
> > So I'm assuming you're misusing the term and that you did want a fragment.
> 
> I realize that using # is typically a fragment, but apparently that is
> not how Angular uses that character. If you look at
> http://stackoverflow.com/questions/14319967/angularjs-routing-without-the-ha
> sh you will see what I am referring to.

That page is gibberish to me. I can't understand anything of that.

To make matters short, these two URLs are different:

http://foo.bar.com:8000/#/workitem/12345
	scheme = http
	authority = foo.bar.com:8000
	path = /
	fragment = /workitem/12345

http://foo.bar.com:8000/%23/workitem/12345
	scheme = http
	authority = foo.bar.com:8000
	path = /#/workitem/12345

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Interest mailing list