Skip to content

How to get the current page URL including arguments? #769

Discussion options

You must be logged in to vote

You could use the following for the URL including arguments:

<?php echo $this->yellow->page->getUrl().$this->yellow->toolbox->getLocationArguments() ?>

Datenstrom Yellow uses clean URLs. Instead of passing arguments with query strings it uses location arguments. Instead of https://example.com/search?query=yellow it uses https://example.com/search/query:yellow/. Perhaps the API documentation needs a few more examples for developers.

Hope this helps.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by annaesvensson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants