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

Feature/respect subfolders #16

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Resources/Private/Javascript/Components/UserMenu.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { isNil } from '../Helper'
import ApiService from '@unikka/loginas-api'
import ApiService from "@unikka/loginas-api/src/Service/ApiService";
import { RestoreButton } from '../Templates/RestoreButton'

const BASE_PATH = '/neos/impersonate/'
const BASE_PATH = location.href.split('/neos')[0] + '/neos/impersonate/'
export default class UserMenu {
constructor(_root) {
const csfrTokenField = document.querySelector('[data-csrf-token]')
Expand Down Expand Up @@ -79,7 +79,7 @@ export default class UserMenu {

// load default backend, so we don't need to care for the module permissions.
// because in not every neos version the users have by default the content module or user module
window.location.pathname = '/neos'
window.location.href = location.href.split('/neos')[0] + '/neos'
})
.catch(function (error) {
if (window.Typo3Neos) {
Expand Down
6 changes: 3 additions & 3 deletions Resources/Private/Javascript/Components/UserModule.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {isNil} from '../Helper'
import ApiService from '@unikka/loginas-api'
import ApiService from "@unikka/loginas-api/src/Service/ApiService";
import {ImpersonateButton} from '../Templates/ImpersonateButton'

const BASE_PATH = '/neos/impersonate/'
const BASE_PATH = location.href.split('/neos')[0] + '/neos/impersonate/'
export default class UserModule {
constructor(_root) {
const csfrTokenField = document.querySelector('[data-csrf-token]')
Expand Down Expand Up @@ -66,7 +66,7 @@ export default class UserModule {

// load default backend, so we don't need to care for the module permissions.
// because in not every neos version the users have by default the content module or user module
window.location.pathname = '/neos'
window.location.href = location.href.split('/neos')[0] + '/neos'
})
.catch(function (error) {
if (window.Typo3Neos) {
Expand Down
2 changes: 1 addition & 1 deletion Resources/Public/Javascript/Main.js

Large diffs are not rendered by default.

Loading