Closed jibees closed 1 year ago
Those two lines should be added to enable this:
$locationProvider.hashPrefix('')
$locationProvider.html5Mode({enabled: true, requireBase: false})
probably to file app/assets/javascripts/admin/admin_ofn.js.coffee
Actually, it seems that, on page /admin/enterprises/*
this file doesn't run the #config()
method (something I don't understand). I've tested then by adding those two lines into /admin/utils/utils.js.coffee#config()
file and it works on pages /admin/enterprises/*
which is the purpose of this issue.
Context: Can't use reflex on page that contains
#!#
in URL as it is a non-valid URI. https://github.com/openfoodfoundation/openfoodnetwork/pull/9729In this PR, I wanted to use reflex to invite a manager (instead of using controller, and having a stimulusjs controller that does the request ...) ; this seems to be impossible since the url of the page which is requested the reflex is not a correct URI and then stimulus_reflex (tested both
3.5.0.pre9
and3.5.0.pre10
) throw an error:Blocks #9729