Browser component pathparts.last not working

Anybody know why the browser component extentions to pathparts don't work?

browser1.location.pathparts works fine: pages,somefolder,Browser_component.php

But all the extentions to partspath return nothing:
browser1.location.pathparts.count()
browser1.location.pathparts.join("|")
browser1.location.pathparts.last
browser1.location.pathparts.last(1)
browser1.location.pathparts.slice(1,3)
etc...

Any idea?

Is there an error in the browser console when you are using these expressions?
Maybe the formatter js file is missing from the page? If it is missing, make sure to generate any of these expressions using the UI (and the formatter option) so that on save the formatter js include will be added.

If the formatter include is on the page they work nicely:
Screenshot 2024-08-22 at 14.55.42

Ah, I see.
I just copied the whole html source code from a post here on the forum for the complete browser component and pasted it in my page.
And added the browser component to my page.

You are right, something is missing; the page can't find certain methods:
image

I tried to add on manualy but I can't select anything deeper than the pathparts:

so please just insert an expression using the UI and format it using the formatter icon:

1 Like

Yes!
Thanks again Teo :facepunch:

1 Like