Closed christiansteinhart closed 4 years ago
that does not work in subfolder installations
I have updated the PR, removing the combining of the URL back to the original one, but switched the indexOf
to lastIndexOf
.
I have not yet encountered a situation where the Shopware Backend displayed a second backend
piece in the URL when navigating to the Plugin Manager or the Basic Settings.
In addition this should cover as well any problems occuring from subfolder installations which would contain the word backend
like my.example.domain/backende-muttis/backend
.
Thanks for your Contribution! 💙
18
Both protocol and host are supported by all desktop browsers.
https://developer.mozilla.org/en-US/docs/Web/API/Location/protocol https://developer.mozilla.org/en-US/docs/Web/API/Location/host