Views Contextual Filters - User Name in URL

Solutions

You should remove the "User: name" Relationship on the view and add a new relationship "User: uid". Then you can access the author view with /blog/author/123.

Then create a URL alias for "/blog/author/123" and set it to "/blog/author/john-smith". You will then be able to access the view with both the uid 123 or using john-smith.

Similar questions

How do we use two contextual filter because when i use two contextual filter it only filter from first filter second contextual filter is ignored
I have a view with two contextual filters I want to filter from both filter but it only filters by the first contextual filter. The second contextual filter is ignored.
Views: How to list nodes by 2 vocabularies with “%” on url path for contextual filters
I have a content type with 2 different Term references. I wanna use Views to list “Term one” with “%” on url path, and use “Term two” as section. See below for details. Vocabulary term one: Book type A Book type B Book type C Vocabulary term two: Book style A Book style B Book style C List result: on Book type A Book style A - node 101 title, autho...
How to show different Views for the same URL with contextual filters
I have 1 View with contextual filter: /catalog/% % - is taxonomy term and it can be several terms (I use them for Porducts groups) like: Phones, Accesoiries, Tablets, etc. So, when Views get URL with Phones argument it show all its stuff on /catalog/phones page. Problem is, that I also want to have another Views for Tablets, which should have the s...
Views Contextual Filters and URL Aliases
Forgive me if this is a repost, but I have spent days trying to figure this out and everything I have found on drupal.stackexchange and elsewhere have been no help and I am struggling to understand the what views is doing exactly... Here's my problem: I have a website that has 2 different content types: category and static content. Within category ...
How to display contents which matches the path alias of a content from URL using views contextual filters?
I have a content type "basic" and have contents with different URL alias for ex: www.example.com/news/newsletter/title; www.example.com/content/title; both are same type. I need to create a view page and the path for that view page is news/newsletter, In this page I want only the content which having the path alias news/newsletter. How can we get t...
Views contextual filters url position
I was wondering if there was a way to change the url position of a view contextual filters. normally, they are at the end of the URL after the view-name but i would like to have them after the language. ie: example.com/fr/filter1/filter2/view-name

Also ask

We use cookies to deliver the best possible experience on our website. By continuing to use this site, accepting or closing this box, you consent to our use of cookies. To learn more, visit our privacy policy.