Forum Discussion

santosh_csc's avatar
7 years ago

How to get path parameter of URL inside component?

In reply to a private message page, I want to get the message ID. How can I get that number?   If there is no freemarker Object has this info, then I can extract the number 25 from URL https://comm...
  • him_varma's avatar
    7 years ago
    Hi Santosh,

    You can achieve this by the following lines of code:

    <#assign MessageId = webuisupport.path.parameters.name.get("note-id") >

    Note ID: ${MessageId.noteId }

    Let me know if this was helpful.