codefog / contao-haste

Haste is a collection of tools and classes to ease working with Contao
http://codefog.pl/extension/haste.html
MIT License
42 stars 24 forks source link

FR: Util/Url - trigger disableAlias or set parameter to use '/' as separator #107

Closed zonky2 closed 5 years ago

zonky2 commented 7 years ago

the "most URL builder" trigger the $GLOBALS['TL_CONFIG']['disableAlias'] to change the separator from &%s=%s to /%s/%s

e.g. https://github.com/contao/core/blob/af729dcc8c72df338ecf8e3e216aa88706d9a3b9/system/modules/core/classes/Frontend.php#L378

https://github.com/MetaModels/core/blob/master/src/MetaModels/FrontendIntegration/FrontendFilter.php#L92

may be, its a good feature to add this trigger or add a additional parameter ... and we can see the URL like ...my-mp_form/step/1.html at "mp_forms"

qzminski commented 7 years ago

Pull requests are welcome 😉

zonky2 commented 7 years ago

o.k. - we´ll use the trigger or an additional parameter?

qzminski commented 7 years ago

I suggest that you create another method (e.g. addPathString) because the current ones refer explicitly to the query string.

zonky2 commented 7 years ago

o.k. ...

qzminski commented 6 years ago

Any news on this @zonky2 ?