Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DEV: Function to get baseUri from get-url helper #10444

Closed
wants to merge 2 commits into from

Conversation

markvanlan
Copy link
Contributor

@markvanlan markvanlan commented Aug 14, 2020

@eviltrout This is so that I can get the subfolder path. I didn't want to export the variable, so that it cannot be set outside of the get-url file, so I wrote a get function.

@eviltrout
Copy link
Contributor

Why do you need this though? So far other code has avoided it so I am curious.

@markvanlan
Copy link
Contributor Author

@eviltrout This returns just the subfolder path, if one is present. It is useful to me in my Plugin Adventures ™️, and seems generally useful. Not sure a cleaner way to get just the subfolder path otherwise!

@eviltrout
Copy link
Contributor

You can call get-url "/" right?

@markvanlan
Copy link
Contributor Author

@eviltrout 🤦

@markvanlan markvanlan closed this Aug 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants