Posts by Ricardo Rauber • 33 points
1 post
-
3
votes4
answers318
viewsQ: How to get the last segment of the path?
URLs de exemplo: content/edit content/edit/ content/edit?q= content/edit/?q= I tried to make the code but it always fails when the url does not have "/" or "?" and if there is "/?" at the end. The…