Skip to content

crashed when used with <base href="/any-base/"> #2988

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

Closed
prasgema opened this issue Sep 12, 2016 · 3 comments
Closed

crashed when used with <base href="/any-base/"> #2988

prasgema opened this issue Sep 12, 2016 · 3 comments
Labels

Comments

@prasgema
Copy link

prasgema commented Sep 12, 2016

Wasn't sure if I have to post this in ui.bootstrap or ui.router
But it happens when you are using <base href="/any-base/"> altogether with ui.router and ui.bootstrap I can't seem to get out of the problem. At first, I thought this is a problem with ui.router; turns out when you comment the ui.bootstrap in angular dependencies, the problem stops.

The problem it caused is a continuous loop to load the required js files
continuous

The problem does not happen when you are using <base href="/"> or <base href="/any-base"> but this doesn't produce wanted result. the use case is that: like to make a multiple-angular-UI application (suppose https://host is where I store the primary application), I need to make a separate angular application by heading to https://hosts/admin, using the same API as frontend. Using a will result all ui-sref="..." routes the link to https://hosts/admi/path/to/route instead of https://hosts/admin/path/to/route

Here's the example of code where it loads js infinitely
https://embed.plnkr.co/Nw4fPlELncOPoWdB2ehe/
although it won't work if not hosted on a single host

Angular: 1.5.8
UIBS: 2.1.3
UIR: 0.3.1
Bootstrap: 3.3.7

@eddiemonge
Copy link
Contributor

@christopherthielen wasn't this fixed (where the last character in base was getting stripped) or did we punt it off to the angular team since it was a bug in ng core?

@christopherthielen
Copy link
Contributor

@eddiemonge I honestly don't recall... #2357 maybe?

@stale
Copy link

stale bot commented Jan 24, 2020

This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs.

This does not mean that the issue is invalid. Valid issues
may be reopened.

Thank you for your contributions.

@stale stale bot added the stale label Jan 24, 2020
@stale stale bot closed this as completed Feb 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants