How to get currunt path in the field?

On the user profile page, I want to add link field which will be the link for the view page.

For example,

If the current path is,

sitename/user/1 (profile page of user-1)

So, I want link should be like, sitename/user/1/view-page,

It should automatically take the user-id from the current-path. And if I click it should redirect to sitename/user/1/view-page. So in general sitename/user/%/view-page

The idea is, the view which is on that page has contextual filter for the particular user, so this way we can provide the user-id to view through URL.

Any suggestion? Or any other way of doing this would also be appreciated. Thanks.


Category: 8 Time: 2016-07-31 Views: 0
Tags: links

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development


Front-end development


development tools

Open Platform

Javascript development

.NET development

cloud computing


Copyright (C), All Rights Reserved.

processed in 0.237 (s). 12 q(s)