Creating a page view with dynamic url based on parameters in node

I know this is probably a basic setup but just need some help getting started.

I am trying to work out how to create a dnamic url for a page based on a query result.

To explain.

  1. A form is completed
  2. The form submit creates a record in a table
  3. On Success the user is redirected to a page which would contain a table displaying the record just saved to the database
  4. The url format for the page: /admin/form_result/{database record id}

I gather i have to do the following:

I know kind of what I need to do but have no idea how to do this or where to start.

Any tips advice or exiting tutorials?

Many thanks :grinning:
`

This doc should get you going.

1 Like

Because you need the ID of the inserted record, I think that I would use the Redirect on the server, after the insert step as follows:

image

You will need to set the routing up to accommodate the link. See @brad’s answer for that.

I have not tried this myself, I am only theorising. I hope it works.

1 Like

Great. Thank @brad and @ben will get my head into it.