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

can't use the uid in my URL for SEO #6

Open
heshamelmasry77 opened this issue Jan 25, 2017 · 0 comments
Open

can't use the uid in my URL for SEO #6

heshamelmasry77 opened this issue Jan 25, 2017 · 0 comments

Comments

@heshamelmasry77
Copy link

Hey thank you for sharing this repo it is very helpful.
I am facing a big huge problem to get my URLS to be seo friendly.

at the controller here we are using the id to get the document but i don't want to use it.

I want to use the uid for example it doesn't work.

that what we have :
$routeProvider.when('/document/:id/:slug', {templateUrl: 'partials/document.html', controller: 'DocumentCtrl'});

i wanna use this :
$routeProvider.when('/document/:uid/:slug', {templateUrl: 'partials/document.html', controller: 'DocumentCtrl'});

and when i redirect i wanna use this :

<a ng-href="#/document/{{document.uid}}/{{document.slug}}">
           {{document.slug}}
       </a>

i want my link to be something like this :
http://127.0.0.1:52486/app/index.html#/document/make/tata
make is a type in my prismic repo i made it whatever i want anything else from the fragment object not the id
i tried many things but it nothing worked with me.

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

1 participant