# Not able to create a permalink with forums/\* address

**URL:** https://meta.discourse.org/t/not-able-to-create-a-permalink-with-forums-address/52100
**Category:** Bug
**Created:** [October 27, 2016, 1:38pm UTC](https://meta.discourse.org/t/not-able-to-create-a-permalink-with-forums-address/52100 "2016-10-27T13:38:35Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![mrded](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mrded/32/62438_2.png) [@mrded](https://meta.discourse.org/u/mrded)
#### Post date: [October 27, 2016, 1:38pm UTC](https://meta.discourse.org/t/not-able-to-create-a-permalink-with-forums-address/52100/1 "2016-10-27T13:38:35Z")

</div>

I’m trying to create a `Permalink` with `forums/general-discussion` url pointing to a `Category`.

Then I try to access it - it gives me an error:

```
AbstractController::ActionNotFound at /forums/general-discussion
The action 'show' could not be found for ForumsController

```

The problem is with routers:

```
Discourse::Application.routes.draw do
  ...
  resources :forums
  ...
end

```

it processes all /forums/\* requests.

I made a pull request here [Remove useless routing for ForumsController by mrded · Pull Request #4517 · discourse/discourse · GitHub](https://github.com/discourse/discourse/pull/4517)

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [October 27, 2016, 1:56pm UTC](https://meta.discourse.org/t/not-able-to-create-a-permalink-with-forums-address/52100/2 "2016-10-27T13:56:46Z")

</div>

A permalink shouldn’t accept the “/” character because that’s invalid for a location, because its a delimiter.

One permalink as “general-discussion” should work.

Are you in a subfolder install?

---

<div class="post-metadata">

### Author: ![mrded](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mrded/32/62438_2.png) [@mrded](https://meta.discourse.org/u/mrded)
#### Post date: [October 27, 2016, 2:05pm UTC](https://meta.discourse.org/t/not-able-to-create-a-permalink-with-forums-address/52100/3 "2016-10-27T14:05:42Z")

</div>

Thank you for your answer,

I’m using Permalink as redirects from the forum we are migrating from.

And we have to redirect from `http://example.com/forums/general-discussion` into `http://example.com/c/uncategorized`

Currently I’m on local development install `http://localhost:3000/`.

---

<div class="post-metadata">

### Author: ![mrded](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mrded/32/62438_2.png) [@mrded](https://meta.discourse.org/u/mrded)
#### Post date: [October 27, 2016, 3:20pm UTC](https://meta.discourse.org/t/not-able-to-create-a-permalink-with-forums-address/52100/4 "2016-10-27T15:20:12Z")

</div>

The issue has been solved, but still, can you explain why a permalink shouldn’t accept the “/” character?  
Am I using it not on purpose? Thanks.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [October 27, 2016, 3:21pm UTC](https://meta.discourse.org/t/not-able-to-create-a-permalink-with-forums-address/52100/5 "2016-10-27T15:21:17Z")

</div>

Actually a permalink with `a/b/c` works, and one with `c/xyz` also works. Gotta do some digging on this later.

---

<div class="post-metadata">

### Author: ![mrded](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mrded/32/62438_2.png) [@mrded](https://meta.discourse.org/u/mrded)
#### Post date: [October 27, 2016, 3:23pm UTC](https://meta.discourse.org/t/not-able-to-create-a-permalink-with-forums-address/52100/6 "2016-10-27T15:23:16Z")

</div>

Do not worry about it, it’s solved already [Remove useless routing for ForumsController by mrded · Pull Request #4517 · discourse/discourse · GitHub](https://github.com/discourse/discourse/pull/4517)

Thanks.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [October 27, 2016, 3:25pm UTC](https://meta.discourse.org/t/not-able-to-create-a-permalink-with-forums-address/52100/7 "2016-10-27T15:25:33Z")

</div>


