I'm having an issue configuring a URL alias that redirects content to a view with a contextual filter.
Here's my working setup:
- I have a bunch of content of type SEEL Lesson Plan.
- To display these lessons in a Library, I created a view with the path http://example.com/seel/
- I set up a contextual filter (Content: Title) on the view. So, if you access http://example.com/seel/eat-an-apple, it will display the lesson with title "Eat an Apple" in the Library.
Here's my objective:
I want to override the "Save" button, so when clients edit any content of type SEEL Lesson Plan, it takes them to the library (http://example.com/seel/eat-an-apple) rather than the content page (http://example.com/content/eat-an-apple).
How do I do that?
Here's what doesn't work:
I added the following URL alias at http://example.com/admin/config/search/path/patterns:
I created a new content of type SEEL Lesson Plan that uses this URL alias. I can see it in my list of URL aliases (http://example.com/admin/config/search/path/list/seel):
But, when I go to http://example.com/seel/fdsa to test it out, it totally messes up. I'd include a screenshot if I could, but the HTML elements are literally all over the place -- displaying below the block on the left sidebar instead of in the main content pane, floating all over the footer, etc.
Here's how I know it's a problem with URL aliases:
As well: other lesson plans, for which there is no URL alias, display just fine. (For example: http://example.com/seel/eat-an-apple still works.)
Why is this happening?