Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
base system
Priority:
Major
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
15 Sep 2015 at 06:38 UTC
Updated:
30 Sep 2015 at 12:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
dawehnerComment #3
dawehnerLet's get started
Comment #4
pguillard commentedComment #5
dawehnerHere is a screenshot with all of them hacked in temporarily.
Just in case someone asked, we could use (new Link()) but therefore we need to fix the UnroutedUrlAssembler, see #2568773: Add $options['base_url'] support to the unrouted URL assembler
Comment #6
dawehner@pguillard
Did you tried whether this actually works, because I doubt it.
Comment #7
pguillard commented@dawehner : no, I didn't try
Comment #8
dawehner@pguillard
So yeah in your example the
<code>would have been escaped and by that not what you actually want. You want $query to be HTML wrapped.Comment #9
xjmComment #10
xjmThat looks like it wants a test added too.
Comment #11
xjm(Embedding @dawehner's screenshots.)
Comment #12
xjmSo that $base_url is not being used... is the link broken, or not?
Comment #13
dawehnerThank you for your reviews xjm!!
I fear testing this will be incredible hard. You would basically have to compile a Mysql server without utfmb4 support. PHP is a programming language, so yes, we could do that,
but feels a little bit too much as requirement for this issue. The same was decided on the utfmb4 issue which introduced this particular code.
Ah yeah I was experimenting with the url generator code. Let's keep it as straightforward as possible and use exactly the same as HEAD, which works!
You link to a relative URL, and "core" is the current base path as seen by your browser. Everything is fine. I tested it on d8.dev and localhost/d8 and clicked on the link.
Comment #14
xjmLOL fair enough.
This seems completely sufficient to me then. Thanks!
Comment #15
alexpottCommitted 333977e and pushed to 8.0.x. Thanks!
Comment #17
alexpott