Skip to content

Conversation

orenyosifon
Copy link

a small inquiery should that the method evaluates 'this' and 'base' actually tries to work when actually 'this' IS 'base'
adding this condition at the beginning of the method fixes things:
if (base.is(this))
{ return actualUrl }
Also,
the method getActualUrlParent has a problem:
when evaluating apath starting with a slash (like '/mydir') it will return the complete string as a parent. this is due to the fact that the slash index is 0, and the substring 0..-1 means 'entire string' in groovy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants