Custom domain name variable in workflows

I was checking the context variables in workflows, and I can’t find the custom domain name.
Is this missing?

Context: saving the URL of collection items in back-end for sending emails based on back-end triggers.

Thanks!

Hi @felix :wave:

I think what you’re looking for is the current page paths variables:

In the example above, I’m on a collection page with the following URL configuration:

Does that help?

Hi Joyce,

Thanks for your answer.
The issue I have is when I test workflows, it writes the editor path in my backend database, leading to potential errors in the production env.
Ideally, the path in the context variable should be the production path (with the custom domain).

Best,
Felix

Like this?

Or maybe like this?

Here’s a video that I think might help: Video for Felix — Tella

Let me know if not

1 Like

I’m incredibly grateful you’ve done this video for me!

Yes, that could work, but:

  • I like abstractions, and I may change the domain name any time (forgetting about this)
  • I have a dynamic collection, so the URL is build from data in the back-end, I would have to rebuild the parameters here (they say DRY).

It works fine in production so there’s nothing problematic here, I was just trying to optimize.

Thanks again!