Just want to return the url appendix

The airportal-360. I just want that and now the project/airportal-360.

I tried using

                            <?php echo $subdropsticky->urlKey() ?>
                                <a href="#<?php echo $subdropsticky->url() ?>">
                                    <?php echo html($subdropsticky->title()) ?>
                        <?php endforeach ?>

I tried using $sudropsticky->uri() but that returns project/airportal-360 and I just want to return airportal-360. Any suggetions?


I think you’re looking for the slug method.