1

I'm using the following URI format of a channel

{slug}-{restaurant.one().slug}-{locations.last().slug}-{locations.one().slug}

It throws a deprecation error caused by locations.last()

however when I use

inReverse().one()

instead, it doesn't work as expected.

final syntax

{slug}-{restaurant.one().slug}-{locations.inReverse().one().slug}-{locations.one().slug}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.