Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
routing system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Feb 2015 at 12:21 UTC
Updated:
31 Mar 2015 at 21:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dawehnerJust an idea.
Instead of having the same kind of code twice, what about providing a method in our own variant of the routing context?
Comment #2
dawehnerLet's better replace all the usages of $script_path
Comment #4
dawehnerAlright, one less problem.
Comment #5
Crell commented#4seems good to me, and the diffstats go the right direction. :-)
Comment #6
fabianx commentedRTBC, looks great to me.
Comment #7
alexpottRerolled because #2426489: Remove request_uri() landed and we still need a CR.
Comment #8
dawehnerAdded one. Do you think this is back to RTBC?
Comment #9
tstoecklerWould be awesome to mention in which cases specifically the first example doesn't work and what the specific difference between the two is.
Comment #10
dawehnerI just realized that
$script_pathis something which just exists for 8.0.x ... so do we really think we need a change record?Comment #11
Crell commentedAnd back.
I don't think $script_path was ever part of an API in D8, so if it didn't exist prior then there's no need for a CR.
Comment #12
webchickThis seems fine, other than:
This is not user input. Should we replace with an explicit internal:// instead? Or do we not care, since this is "just" a test?
Comment #13
dawehnerI think think
internal://is the WORST thing we ever came up with, anyway, let's use it.Comment #14
dawehnerBack to RTBC
Comment #15
webchickI know, sorry. :(
Committed and pushed to 8.0.x. Thanks!