Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirect back to scenario page #1002

Closed
mikalauskas opened this issue Sep 1, 2015 · 9 comments · Fixed by #1003
Closed

Redirect back to scenario page #1002

mikalauskas opened this issue Sep 1, 2015 · 9 comments · Fixed by #1003

Comments

@mikalauskas
Copy link
Contributor

it would be better to it redirects back to scenario page if i edit agent from its scenario page

@cantino
Copy link
Member

cantino commented Sep 1, 2015

That's a good idea, I'll take a look at it.

@cantino
Copy link
Member

cantino commented Sep 1, 2015

Should be fixed by #1003. Mind testing?

@mikalauskas
Copy link
Contributor Author

Yes! It works as should be 👍
also 'Back' button should work the same when you click on 'Show' or viewing events from agent details page, i think

upd: wherever there is 'Back' button it points out to Agents page

@cantino
Copy link
Member

cantino commented Sep 2, 2015

Thanks for testing, @mikalauskas. That's a good suggestion. I just updated #1003, if you wouldn't mind hammering on it a bit.

@mikalauskas
Copy link
Contributor Author

fix this too
https://github.com/cantino/huginn/blob/41f4d6e3395810d39e1262e3674f14e635f0f011/app/views/agents/_table.html.erb#L56

<%= link_to(agent.events_count || 0, agent_events_path(agent, return: (defined?(return_to) && return_to) || request.path)) %>

https://github.com/cantino/huginn/blob/agent_editing_returns/app/views/events/index.html.erb#L43

<%= link_to icon_tag('glyphicon-chevron-left') + ' Back'.html_safe, filtered_agent_return_link || agents_path, class: "btn btn-default" %>

@cantino
Copy link
Member

cantino commented Sep 3, 2015

Thanks, I updated it.

@level20peon
Copy link

Another place where the back button doesn't redirect properly:

Click on an Agents' "Actions" Menu -> "Show" -> "Events" -> "Back" leads back to the "Agents Overview" Page instead of the "Show" page.

Also:

Click on an Agents' "Actions" Menu -> "Show" -> "Actions" Menu -> "Edit agent" -> Save leads back to the "Agents Overview" Page instead of the "Show" page.

@cantino
Copy link
Member

cantino commented Sep 10, 2015

You mean the difference between "Summary" and "Details"? I see what you mean, but I don't think it's worth the time to fix that particular issue right now.

@level20peon
Copy link

s/Show/Details/g
I was just referring to the name of the menu entry, but yes, that's what I mean. Maybe there are even yet other places where this occurs. I don't really understand why fixing the redirection back to the scenario page is more important than generally "fixing" the back-buttons, but I just added #1002 (comment) for the sake of completeness in this thread.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants