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

OSOE-653: Relative URL prefixed with /Admin in case of an admin controller action if [Route] attribute is used in Lombiq.HelpfulLibraries #208

Merged
merged 3 commits into from
Jul 12, 2023

Conversation

DemeSzabolcs
Copy link
Member

@DemeSzabolcs DemeSzabolcs commented Jul 10, 2023

OSOE-653
Fixes #201

@Psichorex Psichorex merged commit 1021a9e into dev Jul 12, 2023
1 check passed
var prefix = _isAdminLazy.Value ? "/Admin/" : "/";
var isAdminWithoutRoute = _isAdminLazy.Value && _action.GetCustomAttribute(typeof(RouteAttribute)) == null;

var prefix = isAdminWithoutRoute ? "/Admin/" : "/";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know the context but is it correct to use an hardcoded /Admin prefix, shouldn't it be retrieved from the current AdminOptions.AdminUrlPrefix?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for pointing that out! I didn't change that since that was not the focus of the issue and I didn't want to mess around. But it's a good point, I can create an issue for that!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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