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

How can you set the port number the baseUrl #43

Closed
klokoy opened this issue May 3, 2013 · 5 comments
Closed

How can you set the port number the baseUrl #43

klokoy opened this issue May 3, 2013 · 5 comments

Comments

@klokoy
Copy link

klokoy commented May 3, 2013

If I configure restangular to use the baseUrl http://localhost:8080, it removes the 8080 when it queries on the rest api. Is there a way I can force it to use port 8080?

@mgonto
Copy link
Owner

mgonto commented May 3, 2013

Hey,

That's an Angular bug :) that has a quick fix. Check bug report at angular/angular.js#1243

This is the fix:

// First option recommended by angular
RestangularProvider.setBaseUrl('http://localhost\\:8080');

//Second option working
RestangularProvider.setBaseUrl('http://localhost:8080\:8080');

I know it looks ugly, but at least you just gotta do it once. Let me know if this works.

@mgonto
Copy link
Owner

mgonto commented May 3, 2013

If it does work, please close the issue.

@mgonto mgonto closed this as completed in 1e22f53 May 3, 2013
@mgonto
Copy link
Owner

mgonto commented May 3, 2013

Added it to the FAQ.

@klokoy
Copy link
Author

klokoy commented May 3, 2013

Works like a charm;)

Thanks a lot

@mgonto
Copy link
Owner

mgonto commented Jun 17, 2013

Hey,

@fdomig is having a problem with Stripped port from BaseURL. Could you give him a hand on working this out?

He has opened #120 ?

Thanks!

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

No branches or pull requests

2 participants