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

Admin App URL ignores redirects #10245

Closed
3 tasks done
w0kyj opened this issue Dec 2, 2021 · 0 comments · Fixed by #10247
Closed
3 tasks done

Admin App URL ignores redirects #10245

w0kyj opened this issue Dec 2, 2021 · 0 comments · Fixed by #10247
Assignees
Labels
Milestone

Comments

@w0kyj
Copy link
Member

w0kyj commented Dec 2, 2021

Preflight Checklist

Describe the Bug

I am logged in and want a field with a url in an item to redirect to a new tab in another content collection, however, when I attempt it, it takes me to the login page with "Continue" button that then redirects me to the current page of the original tab.
E.g.:

  • I have content "test_a" with a field with this url: BASE/admin/login?redirect=content/contact_card
  • When I click the link I expect to land on contact_card content collection, but instead am redirected by the Continue to "test_a" item again
    • BASE/admin/login?redirect=content/contact_card
    • Click Continue button
    • BASE/admin/content/test_a/1
      • Should be BASE/admin/content/contact_card

From Discord conversation:
It sounds like "Continue" is using the current page which is saved to the users "last_page"

Let me know if you need any additional details

To Reproduce

Data Model: Create two content collections:

  • contact_card
  • test_a
    • add a Button Link field --> create link
      • name=Contact Card
      • url=BASE/admin/login?redirect=content/contact_card

Content:

  • Select Test A
  • Create an item
  • Click the Contact Card button
  • Click Continue

Errors Shown

No errors

What version of Directus are you using?

9.0.1 & 9.1.2

What version of Node.js are you using?

16.6.1

What database are you using?

Postgres 13 & Sqlite3 3.36.0

What browser are you using?

Chrome

What operating system are you using?

on-demand cloud & macOS

How are you deploying Directus?

on-demand cloud & locally

@rijkvanzanten rijkvanzanten self-assigned this Dec 2, 2021
@rijkvanzanten rijkvanzanten added this to the v9.1.3 milestone Dec 2, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants