Just want to return the url appendix


#1

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

I tried using

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

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

Thanks


#2

I think you’re looking for the slug method.