How we can get Current browser url In Nation builder ? Url may Contain Querystring . Forexample http://test.nationbuilder.com/theme_test?QueryStringID=20
In example URL by Using Page.url_path We are able to get http://test.nationbuilder.com/theme_test URL .
In the Other Side :
BY Using Request.URL . You are unable to get actual url . Like
nationbuilder.com/suggestionpage?ID=10
First time when you Open this page it will show you /suggestionpage?ID=10
But second time if you change nationbuilder.com/suggestionpage?ID=15
Then if you refresh the page its shows you same result /suggestionpage?ID=10
It will happened only when you are not logged in or your browsers cookies are disabled .
But i want to get Complete URL . Please Help Me !
{{ request.url_path }} will produce the URL path after the .com/.net/.org of your site (exampe: nationbuilder.com/suggestionpage)
Update 2012.10.24: {{ request.url }} was originally listed as part of this question but has since been removed as a variable for the request object. You can learn how to build a full URL here.
Showing 4 reactions
Sign in with
Hines Digital
Certified Architect
Certified Expert
nationbuilder.com/suggestionpage?ID=10
First time when you Open this page it will show you /suggestionpage?ID=10
But second time if you change nationbuilder.com/suggestionpage?ID=15
Then if you refresh the page its shows you same result /suggestionpage?ID=10
It will happened only when you are not logged in or your browsers cookies are disabled .