Often the root url of the panel is like http://example.com/panel/
but it can be something else. Is there a function in the panel to get the root url?
Because I’m inside the panel maybe it’s self aware?
Often the root url of the panel is like http://example.com/panel/
but it can be something else. Is there a function in the panel to get the root url?
Because I’m inside the panel maybe it’s self aware?
yes it is! if you look into the panel source code you will find this
panel()->urls()->index()
should do the trick!
Great! Thank you!