diff options
author | Timothy Andrew <mail@timothyandrew.net> | 2016-07-21 17:46:33 +0530 |
---|---|---|
committer | Timothy Andrew <mail@timothyandrew.net> | 2016-07-21 17:46:33 +0530 |
commit | 2ba5e6259e14f9bc9f60201da249a5a313bbd0db (patch) | |
tree | e20b719a8868f0cbd314310f29441e1e4af72c54 /doc/gitlab-basics/start-using-git.md | |
parent | 71b8ca038b38a12fdc1dc7463b57a67fb8b7fcb2 (diff) | |
download | gitlab-ce-2ba5e6259e14f9bc9f60201da249a5a313bbd0db.tar.gz |
Don't use `params[:id]` while building `markdown_preview_path`.20079-new-wiki-page-500
1. Instead, use `@page.title`, since it's always guaranteed to be around
in a wiki.
2. `params[:id]` is _not_ always guaranteed to be around - if a page is
created with errors, `render :edit` is called, and `params[:id]` is
`nil`.
3. More context: https://gitlab.com/gitlab-org/gitlab-ce/issues/20079#note_13223240
Diffstat (limited to 'doc/gitlab-basics/start-using-git.md')
0 files changed, 0 insertions, 0 deletions